Validation not working when app is opened the next time

Ask general questions here.
Soumya
Posts: 3
Joined: Wed Apr 04, 2018 11:48 am

Validation not working when app is opened the next time

Post by Soumya » Wed Apr 04, 2018 1:09 pm

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Thu Apr 05, 2018 7:45 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Soumya
Posts: 3
Joined: Wed Apr 04, 2018 11:48 am

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

Post by Soumya » Fri Apr 06, 2018 11:21 am

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