This is a migrated thread and some comments may be shown as answers.

test pass in Test Studio, Fail in runtime

1 Answer 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ryszard
Top achievements
Rank 1
ryszard asked on 01 Mar 2013, 11:48 AM

Hi
I have a test, that pass without any failes when I run it in Test studio. Same test gets failed when I run it in run-time.
This is error mess:
Step Exception:

Element was not found. Criteria: Element Exists. Page being searched
 
Page (...nteractive.com/en-US/home.aspx). Unable to locate element. Details: Attempting
 
to nd Html element using Find logic (Html): HtmlPath Contains /bodyid=ctl00PageBody/formid=aspnetAND TextContent Exact ADMIN
 
Unable to locate element. Search failed!

I use "Edit in live" option for that element in Test Studio, locating element and validation is possitive. Could you tell me why in run-time that element couldn't be found? and how to resolve it.
login and password for test user also I attached zip file

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 01 Mar 2013, 04:54 PM
Hi Ryszard,

I am sorry to hear you are running into this problem.

Unfortunately I was not able to reproduce the issue. 

In order to assist you best please elaborate a bit more on your scenario:

1. Are you executing the tests remotely in a test list? Test Studio (and most other UI automation tools) tests cannot run in non-interactive mode. The technical problem is that in non-interactive mode there is no Windows desktop object. It requires a real (unlocked) desktop. See this KB article for more information.

2. Please record a short video to show us the issue you are experiencing. Jing is great for this.

There are several things you can try:
 
1. Please try to increase the execution delay (e.g. 1000) from the test list settings (see the second screen shot).

2. If you haven't done so already, please configure your browser on the execution machine as seen in this article.

3. Try to add an WaitForExists step to the element you are clicking on.

Hope to hear from you soon.

Regards,

Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
ryszard
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or