Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 13:59 Go to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 07:35]

Report message to a moderator

Re: Select Node by Textpath [message #1719100 is a reply to message #1719026] Tue, 05 January 2016 09:35 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 11:27 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 11:53 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 12:26 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
Yes, i did that as well
Re: Select Node by Textpath [message #1719122 is a reply to message #1719113] Tue, 05 January 2016 13:27 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 555
Registered: July 2009
Senior Member
That's an absolute path not relative.
Re: Select Node by Textpath [message #1719127 is a reply to message #1719113] Tue, 05 January 2016 14:09 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 14:09 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 14:38 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 14:48 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 07:01 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
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 08:03 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 09:20 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 09:25 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 09:27 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 09:37 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 10:08 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 10:16 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 11:05 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 11:13 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 11:18]

Report message to a moderator

Re: Select Node by Textpath [message #1719232 is a reply to message #1719225] Wed, 06 January 2016 11:43 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
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 12:03 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 12:57 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
Jubula ITE Version: 8.2.0.021, that i am currently working with

[Updated on: Wed, 06 January 2016 12:57]

Report message to a moderator

Re: Select Node by Textpath [message #1719238 is a reply to message #1719026] Wed, 06 January 2016 13:36 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 13:45]

Report message to a moderator

Re: Select Node by Textpath [message #1719663 is a reply to message #1719026] Mon, 11 January 2016 08:50 Go to previous messageGo to next message
Michael Renker is currently offline Michael RenkerFriend
Messages: 26
Registered: December 2015
Location: Germany
Junior Member
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 07:05 Go to previous message
Sucheta Hardikar is currently offline Sucheta HardikarFriend
Messages: 11
Registered: February 2017
Junior Member
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: Sat Nov 17 06:19:15 GMT 2018

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

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

Back to the top