Sometimes Keyword Tests are similar enough where I would need to copy and paste variables from one test to another, but to do so is not possible on TestComplete. Whenever this occurs, I would need t...
Be Able To Copy And Paste Variables
tristaanogre
2 years agoEsteemed Contributor
I'm not sure why project variables would not work. Basically, if this was script code we'd be talking about, I'd have variables that are scoped "global" in the script unit that are then available to all methods/functioins within the unit. Project variable are just that... global scoped variables available for use by anything within the project.
The reason why I don't think it's an issue to have two different test cases using the same variable but different values is precisely that: two different test cases. It's not like the variable needs to persist the value between the test cases, just that the variable is declared in a scope that the test case can get to it.
So, set up project variable 1, use it in test case 1 with certain values you assign within the test case. Then do the same with test case 2, and 3, etc.
Related Content
- 3 years ago
- 3 years ago
- 3 years ago