How can I implement Data-Driven Testing in Alchemy?

Posted 2 months ago by Sanjay

Post a topic
Answered
S
Sanjay

I have a recorded test and want to run it with different data sets. How can I achieve this in Alchemy? 

1 Votes

P

PrasadLangoju posted 2 months ago Best Answer

To accomplish this, you need to prepare the data in CSV file format and save it in a specific location on your system.

1)Go to the “Data” section first. Then Click on the ”Add Data Source”.


2)Provide a name for the data source, and you will see that the CSV format is automatically selected in the Type dropdown. Browse and select the required CSV file from your system, then create the data source.


3)Import them into the Alchemy.

4)Now go to your recorded test, select all steps.


5)Click on the  dropdown from the toolbar and select the option called “ Repeat these steps” .


6)Enter a name while the steps are converting into a function.

7)Select the “Data” option from the “Loop mode” dropdown and confirm it.

8)Open the “Data ToolBox” from the right side and drag the Data Table then drop in to in its respective field in the Test.


9)Go to function and refer the data fields in the steps where ever you want to iterate them.

10)Save the suite and execute the test. 

You will observe that the test runs using all the inputs contained in the CSV file.


1 Votes


1 Comments

P

PrasadLangoju posted 2 months ago Answer

To accomplish this, you need to prepare the data in CSV file format and save it in a specific location on your system.

1)Go to the “Data” section first. Then Click on the ”Add Data Source”.


2)Provide a name for the data source, and you will see that the CSV format is automatically selected in the Type dropdown. Browse and select the required CSV file from your system, then create the data source.


3)Import them into the Alchemy.

4)Now go to your recorded test, select all steps.


5)Click on the  dropdown from the toolbar and select the option called “ Repeat these steps” .


6)Enter a name while the steps are converting into a function.

7)Select the “Data” option from the “Loop mode” dropdown and confirm it.

8)Open the “Data ToolBox” from the right side and drag the Data Table then drop in to in its respective field in the Test.


9)Go to function and refer the data fields in the steps where ever you want to iterate them.

10)Save the suite and execute the test. 

You will observe that the test runs using all the inputs contained in the CSV file.


1 Votes

Login or Sign up to post a comment

© Orasi Software, Inc. | All Rights Reserved.