Page 1 of 1

Validation not working when app is opened the next time

Posted: Wed Apr 04, 2018 1:09 pm
by Soumya
Hi,

I have installed the trial version of Ranorex
I am facing an issue at Validation when I freshly open my application for which I am doing the automation

I am automating a Java swing application. On search it returns me a table of data. Here I have to validate one value in the table for which I am using “Validate”.
I have two scenarios

Scenario 1:
1.Open the application “X”
2.do the recording and Validation using Ranorex for application “X”
3. On the same window of application “X”, Play the recorded Test
4.Result: Ranorex Test Passes

Scenario 2:
1.Open the application “X”
2.do the recording and Validation using Ranorex for application “X”
3.Close application “X”
4. Open the application “X” again
5. Play the recorded Test of Ranorex
6.Result: Ranorex Test Fails

How should I make sure Validate works everytime I open the application freshly(Which is expected in automation)?

Regards
Soumya

Re: Validation not working when app is opened the next time

Posted: Thu Apr 05, 2018 7:45 am
by odklizec
Hi,

Unfortunately, it's impossible to tell what's wrong without some more details. Please answer these points:

- post exact error you are getting
- post element's (entire) xpath, as stored in repository
- post a Ranorex snapshot of the problematic element, saved both after first and second run. Learn how to create a snapshot here:
http://www.ranorex.com/support/user-gui ... files.html

Because you are a new member, with just single post, you will not be able to uploade the snapshots directly to your post. So please use a public file sharing service (onedrive, dropbox, etc...) and here post a link to zipped snapshots. Thanks.

Re: Validation not working when app is opened the next time

Posted: Fri Apr 06, 2018 11:21 am
by Soumya
Hi,

Thanks for your Response.
I could find out that my application changes the order of container everytime because of which the expected element couldn't be found on given xpath.
I could write a generic xpath and it works Great.

Regards
Soumya