update multiple test scripts at once
Accepted answer
In this situation, to use a keyword now:
1. Open one of the affected scripts.
2. Update the step (or steps) that need to be updated.
3. Select the step or steps that are repeated in other scripts, click the Action menu icon (in the step number column), and select Create new keyword from step(s).
3. In the Create Keyword dialog box, type a name and tags, leave the Replace the selected steps with the created keyword option selected, and click OK.
4. Save the script.
5. Open each of the other scripts that need to be updated.
6. In each script, open the Keyword view (by clicking the Show Keyword View icon in the toolbar).
7. Find the new keyword that you created and drag it (using the handle at the far left of the keyword) to the script step(s) to be replaced.
8. Delete the "old" step(s) that you replaced.
The next time those steps need to be updated, you edit the keyword and then that change is automatically reflected in all of the test scripts that use the keyword.
1. Open one of the affected scripts.
2. Update the step (or steps) that need to be updated.
3. Select the step or steps that are repeated in other scripts, click the Action menu icon (in the step number column), and select Create new keyword from step(s).
3. In the Create Keyword dialog box, type a name and tags, leave the Replace the selected steps with the created keyword option selected, and click OK.
4. Save the script.
5. Open each of the other scripts that need to be updated.
6. In each script, open the Keyword view (by clicking the Show Keyword View icon in the toolbar).
7. Find the new keyword that you created and drag it (using the handle at the far left of the keyword) to the script step(s) to be replaced.
8. Delete the "old" step(s) that you replaced.
The next time those steps need to be updated, you edit the keyword and then that change is automatically reflected in all of the test scripts that use the keyword.
Comments
1 vote
showing 5 of 7
show 2 more comments