Skip to main content



      Home
Home » Archived » Jubula » Select Node by Textpath(how to select a node by textpath (taking eclipse as AUT))
Select Node by Textpath [message #1719026] Mon, 04 January 2016 08:59 Go to next message
Eclipse UserFriend
Hello,

I was using the predefined Select Node by Textpath test case for eclipse mars package explorer, but couldn't get it right...

TEXTPATH[String]: \\project\\myproject\\family\\repository\\family.java

i was only able to expand the project node, i want to reach the family.java class file and open it

[please see image]

anyone who can help pls.

tnx

[Updated on: Tue, 05 January 2016 02:35] by Moderator

Re: Select Node by Textpath [message #1719100 is a reply to message #1719026] Tue, 05 January 2016 04:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

what exactly are you trying to do and what does actually happen? Why are you using '\\' when entering the textpath to the node you want to select? Have you read the documentation on how to enter a textpath in a tree?
Regards
Oliver
Re: Select Node by Textpath [message #1719110 is a reply to message #1719100] Tue, 05 January 2016 06:27 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I want to open the family.java file [please see image] with the predefined Select Node by Textpath test case. Meaning I want to walk down the tree and open the family.java file.
Yes I have read the documentation. Wasn't successful.
I was successful trying to use the Select Node by Indexpath testcase though.

tnx
Re: Select Node by Textpath [message #1719111 is a reply to message #1719110] Tue, 05 January 2016 06:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

have you already tried entering the textpath using "/" instead of "\\"? --> "project/myproject/family/repository/family.java"
Regards
Oliver

Re: Select Node by Textpath [message #1719113 is a reply to message #1719111] Tue, 05 January 2016 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Yes, i did that as well
Re: Select Node by Textpath [message #1719122 is a reply to message #1719113] Tue, 05 January 2016 08:27 Go to previous messageGo to next message
Eclipse UserFriend
That's an absolute path not relative.
Re: Select Node by Textpath [message #1719127 is a reply to message #1719113] Tue, 05 January 2016 09:09 Go to previous messageGo to next message
Eclipse UserFriend
This is strange, it works for me using

- Jubula Stand Alone Version: 8.2.0.021
- Eclipse IDE for Java Developers, Version: Mars.1 Release (4.5.1), Build id: 20150924-1200 as AUT

Could you please add more Information about your setup, e.g. used Jubula version, used Eclipse version, Test Execution Report, log files...

Regards
Oliver


Re: Select Node by Textpath [message #1719129 is a reply to message #1719127] Tue, 05 January 2016 09:09 Go to previous messageGo to next message
Eclipse UserFriend
Ah, yes, the relative path might be the Problem Smile
Re: Select Node by Textpath [message #1719131 is a reply to message #1719122] Tue, 05 January 2016 09:38 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

It works for eclipse, but i just wanted to try that out because i am sitting here and trying the same thing with Teamcenter.
The same thing here the Search by Indexpath works, but for the Textpath i get node not found
Re: Select Node by Textpath [message #1719133 is a reply to message #1719131] Tue, 05 January 2016 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Hey,

as I said before please add more Information:

Quote:
used Jubula version, used Eclipse version, Test Execution Report, log files...

What toolkit does Teamcenter use?
Regards
Re: Select Node by Textpath [message #1719195 is a reply to message #1719133] Wed, 06 January 2016 02:01 Go to previous messageGo to next message
Eclipse UserFriend
It might also help if you provide images like the one in the original post above for:

- the parameter you use when you perform the select with indexpath
- and a failing on with textpath (that uses the correct path structure: no leading forward slash, and forward slashes for the path separator: your example in the original post uses a leading slash, and uses backslashes instead of forward slashes).

That way we can see what parameters you are using and what the error type is.

Alex

Re: Select Node by Textpath [message #1719200 is a reply to message #1719026] Wed, 06 January 2016 03:03 Go to previous messageGo to next message
Eclipse UserFriend
Morning,
[please see images]

Toolkit is RCP
Check existence of node by indexpath is succesful (like it was for Eclipse)

Check existence of node by textpath:
For parameter:
absolute = error + nothing happened
relative = error, but the mouse moved to the tree and the root node expanded only


Tnx for the help
Re: Select Node by Textpath [message #1719208 is a reply to message #1719200] Wed, 06 January 2016 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I think you have a typo in the textpath parameter: instead of "Persönliche Ablage" you are looking for a node which is called "Perönliche Ablage" which cannot be found because it does not exist.
Regards
Oliver
Re: Select Node by Textpath [message #1719210 is a reply to message #1719208] Wed, 06 January 2016 04:25 Go to previous messageGo to next message
Eclipse UserFriend
yes i figured that too, but still does not work, sry for the typo.
Maybe we can get somewhere using the OPERATOR parameter? matches, simple match???

tnx
Re: Select Node by Textpath [message #1719211 is a reply to message #1719210] Wed, 06 January 2016 04:27 Go to previous messageGo to next message
Eclipse UserFriend
Try "matches" and use RegEx: .*Persönliche.*Ablage.*/.*Mailbox.*/.*OPEN.*/.*MAIL.*
Re: Select Node by Textpath [message #1719212 is a reply to message #1719026] Wed, 06 January 2016 04:37 Go to previous messageGo to next message
Eclipse UserFriend
still nothing,
i tried it both for relative and absolute
[please see images]

i provided an image of the node i want to access btw
strange but it says that it has an heuristic match of 100%, meaning it recognizes the tree structure right...?

tnx
Re: Select Node by Textpath [message #1719218 is a reply to message #1719212] Wed, 06 January 2016 05:08 Go to previous messageGo to next message
Eclipse UserFriend
What happens if you only check for the node "Persönliche Ablage"? If this works try "Persönliche Ablage/Mailbox" etc. Use "matches" and RegEx again, don´t use a relative pathtype, this only works if there is a node already selected.
Re: Select Node by Textpath [message #1719219 is a reply to message #1719026] Wed, 06 January 2016 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Can't find Persönliche Ablage...
[please see image]
Re: Select Node by Textpath [message #1719223 is a reply to message #1719219] Wed, 06 January 2016 06:05 Go to previous messageGo to next message
Eclipse UserFriend
Are you *completely* sure that you are testing correct component?
Re: Select Node by Textpath [message #1719225 is a reply to message #1719026] Wed, 06 January 2016 06:13 Go to previous messageGo to next message
Eclipse UserFriend
I believe to think so
I was successful testing the tree component with the indexpath test cases for select and check existence

...i am pretty sure

[Updated on: Wed, 06 January 2016 06:18] by Moderator

Re: Select Node by Textpath [message #1719232 is a reply to message #1719225] Wed, 06 January 2016 06:43 Go to previous messageGo to next message
Eclipse UserFriend
Can you find anything suspicious in the log files? You can find them in <YOUR_USER_FOLDER>/.jubula/logs. I am running out of ideas Sad
Re: Select Node by Textpath [message #1719234 is a reply to message #1719026] Wed, 06 January 2016 07:03 Go to previous messageGo to next message
Eclipse UserFriend
no worries buddy...hmmm...here is the test suite i executed and the log file for that specific test

tnx
Re: Select Node by Textpath [message #1719236 is a reply to message #1719234] Wed, 06 January 2016 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Jubula ITE Version: 8.2.0.021, that i am currently working with

[Updated on: Wed, 06 January 2016 07:57] by Moderator

Re: Select Node by Textpath [message #1719238 is a reply to message #1719026] Wed, 06 January 2016 08:36 Go to previous messageGo to next message
Eclipse UserFriend
i am trying to get jubula running that comes with eclipse...
do i leave the org.eclipse.jubula.rc.rcp.....jar in my plugins folder of the Teamcenter AUT?

How about the org.eclipse.jubula.rc.rcp@start in the config.ini file?

well, i left everything as i would use it with the standalone version. All went fine, Teamcenter started, BUT when i wanted to start the Observation mode Teamcenter just disappeared/crashed? leaving me with th exit code=11
[please see images]

tnx

this is the rc_rcp.log for the crash of teamcenter using eclipse

2016-01-06 14:41:46.907 [Connection.ReaderThread:Socket[]] ERROR o.e.j.c.i.connection.Connection - exception raised
org.eclipse.jubula.tools.internal.exception.SerialisationException: org.eclipse.jubula.communication.message.MessageHeader : org.eclipse.jubula.communication.message.MessageHeader
at org.eclipse.jubula.tools.internal.serialisation.XStreamXmlSerializer.deserialize(XStreamXmlSerializer.java:87) ~[org.eclipse.jubula.tools.jar:na]
at org.eclipse.jubula.communication.internal.parser.MessageHeaderSerializer.deserialize(MessageHeaderSerializer.java:71) ~[org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.internal.connection.Connection$ReaderThread.run(Connection.java:446) ~[org.eclipse.jubula.communication.jar:na]





[Updated on: Wed, 06 January 2016 08:45] by Moderator

Re: Select Node by Textpath [message #1719663 is a reply to message #1719026] Mon, 11 January 2016 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Heads up!
Successful testing the Show View Tree in Teamcenter [please see image].

The issue is probably the widgets of Teamcenter, who internally use the Eclipse TreeItem components.







Re: Select Node by Textpath [message #1759724 is a reply to message #1719663] Mon, 17 April 2017 03:05 Go to previous message
Eclipse UserFriend
Hi Michael,
I know this is a long time ago, however I am seeing this same issue in Teamcenter, and I am not able to select node by Textpath, however selecting by IndexPath works perfectly fine.
What change did you make to get the last successful run using select node by Textpath? Please share if you remember.. This will really help me.
Previous Topic:How To: Enter a semicolon with external key combination
Next Topic:Replace Text treats # as 3
Goto Forum:
  


Current Time: Tue Jul 01 03:27:47 EDT 2025

Powered by FUDForum. Page generated in 0.30003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top