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

Newbie Qn- Web Test

1 Answer 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Siddharth
Top achievements
Rank 1
Siddharth asked on 08 Jun 2012, 07:12 PM
Hi I am a new one here and tried using Test Studio to record a basic test case for my Web application.

Test Case

1. Launch Web site
2. Enter credentials
3. Perform search in the system using Criteria1
4. Out of results returned click on ResultRecord  X
5. Check if it loads
6. End

Now I was able to record the scenario and playback as well. My question is that the idea behind this tool is for re using the existing  already recorded scenario. So in my case lets say I ask another person to use my scenario and perform the testing. When he does that I dont want him to open the same Result X which I did, rather he should try doing this for Result Y, Z etc. How and where do I set that

Or in other words how do I test say 10 ResultRecord using the scenario I recorded, without me having to change <Step 4> everytime?

I apologize if its a basic question or If I am not expressing my need clearly. Any insight will be appreciated.

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 12 Jun 2012, 04:53 PM
Hello Siddharth,

This sounds like a perfect scenario for our Data Driven Testing feature.

  1. You'll record a test that goes through the search process once. The actual values you input when you record are not important.
  2. You'll create a local or external data source. Each column header will match its data type: User Name, Password, Search Query, etc.
  3. You'll attach those column headers to input values with this syntax: $(columnName)
  4. The number of rows equals how many times the test will repeat (iterate), inputting the values from that row.

The exception is the Click action at step 4 in your test. That will likely have to use a Data Driven Find Expression, which currently must be done in a coded step. Also see the last code sample here for another example.


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