TestProject Forum

I want to pass date as a parameter through data driven testing and after that I want to click on it.kindly guide me

I want to pass date as a parameter through data driven testing and after that I want to click on it.kindly guide me.
for Android mobile testing

Hello @tanvi.lohakare

For passing a parameter to a data-driven test, you should create the required parameter in your test (whether it’s a project or test parameter), and assign it a CSV file filled out values for this parameter. The column name should be set as the parameter name.
The CSV file will set the parameter values at run time.

Here is an example for you:

Navigate to the test editor.
Click on the 3 dots on the top right of the editor.

image

Click the plus button to add new parameter:

Create the Date parameter:

image

Now, download the Data source Template, fill in the dates, and upload the file to the Data Sources tab on the left.

image

Your file should look like that:

image

Now, when you run the test make sure you choose the CSV file from the list:

The test will run once for each row that you have added in the .csv file using the input for that row.
You can integrate the parameter set by the CSV file in any action inputs you wish.

you can read more about data-driven tests here: Using Data Driven Jobs in TestProject - TestProject Documentation