Copying and pasting multiple test steps across test scripts
![]()
We are able to copy and paste multiple test steps within a single test script but when trying to paste from one test script to another we cannot paste multiple steps. Only the first step in the sequence gets copied. It seems like if the multiple steps are getting copied to a clipboard then we should be able to paste multiple steps from one test script to another.
|
3 answers
![]()
Chris,
If you find yourself performing this action frequently (Copying steps between manual scripts) you may want to look into the Keyword functionality From the Online Help go to: Testing > Developing test cases, test suites, and test scripts > Developing manual test scripts -> Using keywords in manual tests
Keyword overview (From the online help) A keyword is a statement or group of statements that you can reuse in other test scripts. You use the Keyword View to search for keywords and add them to manual test scripts. Keywords are typically composed of script steps that reflect reusable processes. For example, you might create a group of steps for a login procedure. Saved keywords become part of the repository and can be inserted into a script, taking the place of rewriting specific procedures. When a keyword is modified, all scripts associated with that keyword are updated automatically. Keyword-enabled manual test scripts can be composed solely of keywords, or they can be a mix of keywords and manual script steps. You can automate keywords through the use of functional test scripts. After keywords are saved in the repository, you can add them to other test scripts. |
![]()
Using the clipboard view to copy multiple manual script steps from one script to another is how RQM supposed to work.
This feature was added to the tool based on this plan item: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=21577 |
![]() Hello,
for people facing the same need (9 years later !) and IF the number of test steps to copy is non neglictable:
you would consider the temporary creation of a keyword for implementing such cross-test script copy/pasting of test steps.
Procedure follows:
1) Select the steps to be copied
2) Select "Create New Keyword from xx Steps"
3) In the appearing dialog:
* Give your keyword a name: e.g. tmp-kw and
* Important: make sure you deselect the "Replace the selected steps with the created keyword" option
4) Make use of the tmp-kw keyword in the destination test script (by opening the view --> click the "Show Keyword view" icon of the test script editor) and drag&drop the keyword at the correct test step location
5) Select the just-copied keyword and select "Replace with keyword's steps"
6) remove the tmp-kw keyword from the Construction>Browse>Keywords view
and you're done
Stéphane
|
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.