Test execution

4 posts, 1 answers
  1. Corina
    Corina avatar
    17 posts
    Member since:
    Feb 2013

    Posted 18 Apr 2013 Link to this post

    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
  2. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 22 Apr 2013 Link to this post

    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
  3. Corina
    Corina avatar
    17 posts
    Member since:
    Feb 2013

    Posted 22 Apr 2013 Link to this post

    Thank you very much for your answer, that is what I was looking for.

    Regards,
    Corina
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 23 Apr 2013 Link to this post

    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
Back to Top