Ask a Question

How can I initialize parameters for my keyword test before running the Keyword test.

SOLVED
vsumathi
Occasional Contributor

How can I initialize parameters for my keyword test before running the Keyword test.

I have a login page that has three fields ('username', 'password','company' ). 'Company' can have two values ( X or Y). 

For the company field, I created a parameter and want to assign the value X or Y

My requirement is to schedule a job to run my automatic test and have the ability to specify which values I should set for the company filed ( 'X' or 'Y' ) 

2 REPLIES 2
Marsha_R
Champion Level 2

You can

1) Use an input box to enter the value every time you run the test

 https://support.smartbear.com/testcomplete/docs/reference/program-objects/builtin/inputbox.html

2) Use a variable for the value and edit the variable before you run the test

3) Generate a random number and have your test run one way or the other depending on the random number

https://support.smartbear.com/viewarticle/54645/

4) Have your test read the value from a spreadsheet or a text file and edit the value before you run the test.

https://support.smartbear.com/testcomplete/docs/reference/program-objects/ddt/index.html

sonya_m
SmartBear Alumni (Retired)

Thanks a lot for such an informative answer Marsha!

 

@vsumathi does this answer your question?


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: