Copy Suite does not support copying child suites with different scopes


Description

A copy of Suite A in Global scope fails to be created into Suite B being in Incident ATF scope.

Steps to Reproduce

1. Be in the Global scope
2. Create an ATF test called Test A with a single record query step:
Table: sc_task
Conditions: Number is anything
3. Create a suite called Suite A and add Test A created in Step 2
4. Change to Incident ATF scope
5. Create an ATF test called Test B with a single record query step:
Table: sc_task
Conditions: Number is anything
6. Create a suite called Suite B and add Test B created in Step 5
7. Set the parent suite field of Suite B to be Suite A. Notice that the Scope of Suite A is Global and the Scope of Suite B is Incident ATF
8. Change to Global scope
9. Navigate to the Suite A record and click Copy Test Suite

Message "2 of 4 records successfully copied. 2 records were skipped. Details link to log with message: "Failed to copy test suite 'B' because it was outside of the current 'Global' application".

Workaround

For Child suites that fail to copy:

1. After copying the base suite (Suite A for example) and seeing the message about records being skipped, click the link to "See here for details"

2. For child suites that failed to copy (Suite B for example), navigate to the child suite record and switch to the scope of the child suite

3. Click Copy Test Suite (on Suite B)

4. Set the copied suite's Parent suite field to the base suite (in this example, Suite A) in order to get the child suite into the base suite. Notice that the scope of the parent and child suites are preserved.

 

This problem was fixed in Quebec and later releases.


Related Problem: PRB1402534