cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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' ) 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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

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

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

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

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

View solution in original post

Highlighted
Community Manager

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

Thanks a lot for such an informative answer Marsha!

 

@vsumathi does this answer your question?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors