Step 4 - Test Data Management in BotPlay

Updated: Feb 2


Welcome to the world of codeless web automation testing – the BotPlay Automation.


BotPlay testing bot can automate your web application manual testing and processes without writing a single line of code. It's simple, it's easy, it's portable, and, it's codeless.



Different ways to manage test data in BotPlay.

There are two ways to manage test data in BotPlay, either by storing the test data within the script or storing it in BotPlay's runtime environment.






1. Hardcoded - Test data within the scripts

When you select an automation action that has the test data, like while entering a value into the textbox, the instruction will have a parameter as "TD:TestData". Replace this parameter with the actual test data you want the bot to use in automation.


The disadvantage of this option is we are hardcoding the data in the scripts and any change in data will require to change everywhere data is hardcoded. For example, if we have hardcoded the URL of the web application in the script and want to run automation on a different test environment or a different URL, then changes will need to be made in all the scripts using that URL. Hence there is an alternate way to handle this by creating a variable of the test data.



2. Using Test Data Management Section

The second option is to store the test data in BotPlay's runtime environment and give it a name to refer to its value.


Follow these steps for this -


Step 1 - Select an automation action that has the test data, like while entering a value into the textbox, the instruction will have a parameter as "TD:TestData".


Step 2 - Add a row in the 'Test Data Management' section. Now open the 'Test Data Management' section on the right side on the 'Create Bot' tab. Click on the 'Add' button. This will add a row in the table, this is where you have to add the element to the BotPlay's runtime environment.




Step 2 - Add the test date details. Now give a name to the test data by entering it in the 'Name' field, make sure the name is unique. Enter the test data in the 'Value' field.



Step 3 - Save the element. Click the 'Save' button to save your element. Make sure you get the pop-up to confirm the element is saved.

Step 5 - Use the test data in the automation instruction.


(1). Select the automation action from the 'Select Actions' section.

(2). Replace the 'TestData' parameter in the automation instruction with the test data-defined element name we have just created in step 3.

(3). Make sure to keep "TD:" as the prefix to the user-defined element name in the automation instruction. Keeping "TD:" will ensure the bot to know that it has to read the element from the 'Test Data Management' section and not as hardcoded from the script.



3. Encrypting test data


4. Storing value in 'Run-time' variable


5. Generating random numbers


6. Reading from test data

The Scenario Outline keyword can be used to run the same Scenario multiple times, with different combinations of values.



Next Step: Learn how to automate using BotPlay without writing code.


This is BotPlay automation a unique codeless automation testing SaaS platform that lets you automate the testing on web applications without writing and maintaining any code.


With BotPlay anyone can automate. Visit botplayautomation.com to start for free.


#botplayautomation #botplay #automationtesting #softwaretesting #codelessautomation #nocodeautomation


82 views0 comments