Is it possible to run the same test multiple times with different variables
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022
07:02 AM
12-06-2022
07:02 AM
Is it possible to run the same test multiple times with different variables
Hello all,
I am making a test for an account registration.
I got 3 variables with usernames, and I don't want to create multiple scripts for the same test.
is it possible to run the same script and just change the paramers?
because of how it now it, for me it is not possible to select a parameter.
If it is not possible how would you guys solve this?
Labels:
- Labels:
-
Script Tests
-
Variables
-
Web Testing
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022
07:31 AM
12-06-2022
07:31 AM
See Data-Driven Testing. You could also have one function which creates the account, call this three times, by passing in the username as a parameter.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022
01:18 AM
12-07-2022
01:18 AM
I've putted the account information in an array. and the function in a for loop. and made it iterate 3 times
