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

Test execution

3 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Corina
Top achievements
Rank 1
Corina asked on 18 Apr 2013, 09:50 AM
Hello,

I have some questions regarding test recording.

First of all, I am interested to know if it is possible to give different input parameters for a recorded test. For example, I have a test which adds/deletes/updates information in a grid. I want to know if it is possible to give a list of parameters, in an excel or text file, and to execute the test for each parameter or group of parameters in the file. Or, another scenario, to gine parameters in an excel/text file and have several tests execute with parameters from the files. For example, first test executes with first parameters in the list, second with the enxt parameters and so on.

Secondly, does Test Studio have an out of the box solution for checking information in the database? For example, if I have some operations on a grid, and then I add an assertion which checks that a certain element was inserted, I want to also check if it was inserted in the database or not. I know about the possibility to add a coded step, but I was wondering if there might be any other way.

Thank you,
Corina

3 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Boev
Telerik team
answered on 22 Apr 2013, 12:35 PM
Hi Corina,

1) This can be achieved in a very simple way using Data Driven Testing. This is a testing methodology in which the same sequence of test steps are performed repeatedly using a data source to drive the input values of those steps and/or the values to expect when performing verification steps. Test Studio can be used for data driven testing. It supports five different data sources:

Local Data Source
Excel spreadsheet
XML file
CSV file
SQL database
 
I recorded a short video as a demonstration.

2) You can easily access your database via coded or non-coded steps. Please check out these articles:

SQL Database Example

How to Access a SQL Database in Code

Hope this helps.
 

Greetings,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Corina
Top achievements
Rank 1
answered on 22 Apr 2013, 02:27 PM
Thank you very much for your answer, that is what I was looking for.

Regards,
Corina
0
Boyan Boev
Telerik team
answered on 23 Apr 2013, 11:29 AM
Hi Corina,

I am glad I could help.
 
Please don't hesitate if you have additional questions.  

Greetings,

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
Corina
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Corina
Top achievements
Rank 1
Share this question
or