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

Sequential execution

3 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasanna
Top achievements
Rank 1
Prasanna asked on 03 Oct 2012, 12:58 PM
Is there any way for sequential execution of test steps in test studio?
expectation:
while step1 is executed, test studio should wait and go to step2 only when we get response(atleast one element of our choice) file from the server.
Example:
Step1- Navigate to yahoomail.com
Step2- Enter username text in user name text box

Here test studio should go to step2 only if it gets response file or any of the element in xml path from the server.

Reason:
In our application, once we navigate to our application URL, test studio is searching for the elements like user ID text box, which takes bit long time to load. In an overview we are not having synch with the timings of test studio and our application.
If we insert execution delay for each and every step, we are not sure how much time to wait for each and every step to execute.

3 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 03 Oct 2012, 06:31 PM
Hello Prasanna,

Thank you for contacting Telerik Support.

Instead of static execution delay's, the preferred method would be to create a Wait step. For example a 'Wait -element exists' will attempt to find the element on a CheckInterval until the final Timout is reached. These limits can be set in the properties tab.

You can create a Wait as you normally would a Verify, through the Quick Tasks options in the Elements menu. Additionally any existing Verify can be changed to a Wait by right clicking on the step -> Change Role -> Set As Wait.

Please let me if the proposed solution helps.

All the best,
Mario
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Prasanna
Top achievements
Rank 1
answered on 04 Oct 2012, 05:52 PM

Thanks for your response…

Even I have inserted wait step using quick task, test studio has to wait until the element is loaded, but that is not happening and the test case is failing saying the reason as element has timed out..

Regards
Prasanna

0
Mario
Telerik team
answered on 05 Oct 2012, 09:57 PM
Hi Prasanna,

Would you be able to provide me with a copy of your test along with your failure log and a copy of the DOM at the time of failure? You can export these to file from the failure tab of your test and add them to a .zip archive. A Jing video demonstrating the issue may also help me to better understand what is happening.

I look forward to hearing back from you with the additional information.

All the best,
Mario
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Prasanna
Top achievements
Rank 1
Answers by
Mario
Telerik team
Prasanna
Top achievements
Rank 1
Share this question
or