Forum Discussion
You can add a new table variable to your KW and fill it with values. Then, in KW itself, give the condition "if then" where to check the value of the parameter "URL" If no url is specified, take a value from the variable as default value.
I myself often run KW tests with default parameters and there are different solutions for this. I'm just offering a one of ideas.
Thanks for the idea
The basics of it is:
- Smartbear don't understand the question
- can't be done in KW by default but this is quite easy to address but you have to 'program' a solution for this yourself and, more importantly, remember to do it everytime it is needed
- JuliaBernikova4 years agoSmartBear Alumni (Retired)
Hi Lee,
It looks like there indeed was a misunderstanding from our side - my apologies for that.
As for this particular task, it looks like you have found a solution that works best for you. Just as a theoretical alternative, I can also suggest using the project variable in the keyword test directly so that the parametrization only takes place once.
As for the inability to achieve the task without using code, you can register it as a feature request here: https://community.smartbear.com/t5/TestComplete-Feature-Requests/idb-p/TestXCompleteFeatureRequests.
Thank you!
- Lee_M4 years agoCommunity Hero
Julia,
This is something that I would have expected was inherited from the start.
The solution I have and your suggestion are similar.
The idea is to get something reusable and not on a 'per instance' basis
I have settled on writing a module that takes in the parameter and checks it - then the test continues
Thanks for your comment
Lee.
Related Content
- 4 years ago
- 6 years ago