Forum Discussion
Python way:
params = [1,2,3,4,5] for i in range(len(params)): test_set = [param for param in params] test_set[i] = None print test_set
Output:
[None, 2, 3, 4, 5]
[1, None, 3, 4, 5]
[1, 2, None, 4, 5]
[1, 2, 3, None, 5]
[1, 2, 3, 4, None]
baxatob thanks, but how can I implement this in keyword test framework?
I don't really "speak" Pyton....
- baxatob8 years agoCommunity Hero
For example you can create some helper-script (on your preferred language), which will assign required test parameters. Then you can call it from the keyword test in the loop.
- mgroen28 years agoSuper Contributor
Thanks,
I will create a simple example and post it here soon. To illustrate my idea, and see what it will bring us...
Later more!
- mgroen28 years agoSuper Contributor
Attached is an example:
The Project which will open Notepad, en type 5 values read from parameters.
So, back to the "challenge": what would be the best and most efficent approach to change this project so that the keyword test which types the values, is iterated, each time setting a different paramvalue to empty.
Any good suggestions. Thanks!!
Related Content
- 3 years ago
Recent Discussions
- 16 minutes ago
- 6 hours ago