5 Answers, 1 is accepted
There are a few approaches here depending on your desired implementation.
1. Perform loop and its actions entirely in a Coded Step:
2. Use a standard Loop step that includes actions and verifications as standard steps. Insert a coded step in the Loop. You'll need to press View Class to see the Code-Behind File and add an additional line of code outside of the coded step:
3. If you truly wish to create a variable you can later use to Attach to an Input Value or Attach to a Verification, use the following approach which Gets and Sets an Extracted Value in code.
Use a standard Loop step that includes actions and verifications as standard steps. Insert an additional coded step in the Loop with the following:
Now you can data bind a later step using $(iter) via data binding.
All the best,
the Telerik team
Thank you very much for your reply.
I have another query ...
It is regarding radsplitter .
RadSplitter is used in one of the pages in my application . Based on the part of the page that is visible ( currently I'm viewing ) , I have to do some operations on my webpage . But when I tried to identify which part of the web page I'm viewing by using "Verify if a perticular element is visible " , even though I'm not seeing that element ( i.e I'm seeing other part of the page which is behind ) , It is showing that that element is visible .
Can you please guide me how can I identify if a Radsplitter is expanded or not using our test studio .
So that I can understand which part of the page I'm in ..
Donno If I could able to explain the problem clearly .
By Hoping you got my point , waiting for your reply .
I am not able to reproduce the described behavior against this Telerik demo site. Please see the following screen recording where a "Is Visible" Verification properly fails after a RadSplitBar is collapsed:
If you continue to have difficulty, please provide a public site, or even a sample test (within a .zip file), that demonstrates the issue.
the Telerik team
I am using latest version if Telerik 2013 R1. But with the above solutions provided for binding the loop did not work for me.
I need to run the loop for a specific time with some verification inside loop. I cannot keep the verification as a coded step since the element under verification is data binded. Can you please provide exact steps to data bind the looping counter.
I am sorry to hear that you are experiencing this issue.
I can see that my colleague, Anthony, has provided the different ways for doing this, depending on your testing scenario.
In order to help you, I will need to know more about your testing scenario:
1) Please provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution.
2) A Jing video demonstrating the issue may also help us to better understand what is happening.
Looking forward to hearing from you.