Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Is there a way to globally search and replace strings across documents. I have about 300 parameters that now have to be slightly modified in about 80 test suites. Can this be done either using the GUI or through the command line?
Hello Richard,
This is not currently possible. The closest request to it would be RFC 101910, which would do global search and replace within a document. If that feature were implemented, the likely workaround would be to do it on a document by document basis, and so you would likely need a CLI script to batch process all or a subset of your documents. Please contact PTC Integrity Support if you wish to be associated with this enhancement request. Please also make it clear that you would like this functionality to be available from the CLI if that is important to your organization.
Regards,
Kael
Hi Richard,
I am designing right now a custom solution, which might help you as well.
Can you tell me the following:
- you talk about the parameter values?
- they are on Test Suite level?
- You like to mass replace all values ABC by BCD on all test suites in a particual project?
Is this what you want?
Volker
Hi Volker,
Replying to an old topic. Do you have this search and replace across a document or across several documents functionality implemented in any way? Please let us know.
Hi Richard,
we have a similar issue to search/replace stringds in requirements, specifications and testsuits.
Our solution was as follows:
1 query about all required items
2 customize columns to view the necessary fields
3 use the function Export Items to Excel from items menu
4 delete all columns in Excel we don't need
5 build the cli command within Excel in own column
6 copy/paste the build cli command in terminal
I don't know parameters, perhaps there our way is not approriate