update multiple test scripts at once
|
Accepted answer
Lisa Caten (342●9●13)
| answered Sep 27 '13, 1:37 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Sep 27 '13, 1:38 p.m.
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. Ade Adeyokunnu selected this answer as the correct answer
Comments
Ade Adeyokunnu
commented Sep 27 '13, 4:40 p.m.
Thanks Lisa. It seems likeĀ I dont have the "Create new keyword from step" action in my Action menu. I have atteched an image showing the options that show up for me. Any advice?
1
Lisa Caten
commented Sep 30 '13, 11:55 a.m.
| edited Sep 30 '13, 12:08 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
In earlier versions of the script editor, you can select the step(s) and drag them to the Keyword View to create a new keyword from the steps.
Great! that works. thanks a bunch :)
Hey Lisa, follow up question: how do I unassociated keyword steps from a test script?
Delete the keyword steps from the test script. (Then, if you need to, replace them with manually typed local steps.)
Ade Adeyokunnu
commented Oct 25 '13, 12:57 p.m.
right but i don't seem to see a delete option because there are multiple steps associated with one keyword. If i could attach an image to clarify, that would help but i dont have enough rep points.
To clarify, to remove a keyword from a test script, the menu command it Cut, not Delete:
showing 5 of 7
show 2 more comments
|
One other answer
We use a keyword in this situation. That way if something like the login changes, we make the update once and all of the test scripts are updated.
Comments
Ade Adeyokunnu
commented Sep 30 '13, 11:55 a.m.
Any advice on how to display the Create new keyword from step(s).action button. I don't seem to have that option when in my action menu, please see below image. Thank you!
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.