Thought of sharing a script which may be useful for you.
At some point of time you may have faced situation when all automation scripts are uploaded to QC or in File system , but then little change in approach like to associate one new Object Repository or need to have association of new library file or need to have association of Recovery scenarios to every script.
There are two way to update script
1. Open script one by one and perform manually associations
2. Use QC OTA to make this happen with script
The task can be easy if scripts are less in number but lets imagine user has more than 100 scripts. Its also cumbersome even if script are more than 50. So instead of doing association manually user can use OTA which we open script one by one and perform the required task.
Please find the following code to associate new OR to every single script in given QC node.
At some point of time you may have faced situation when all automation scripts are uploaded to QC or in File system , but then little change in approach like to associate one new Object Repository or need to have association of new library file or need to have association of Recovery scenarios to every script.
There are two way to update script
1. Open script one by one and perform manually associations
2. Use QC OTA to make this happen with script
The task can be easy if scripts are less in number but lets imagine user has more than 100 scripts. Its also cumbersome even if script are more than 50. So instead of doing association manually user can use OTA which we open script one by one and perform the required task.
Please find the following code to associate new OR to every single script in given QC node.