QCCR1J26109 - Upgrading a QC 10.00 project containing corrupted test instances results in an upgrade failure

  • KM00356847
  • 07-Feb-2013
  • 12-Feb-2013

Summary

Upgrading a QC 10.00 project containing corrupted test instances results in an upgrade failure

Question

Customer symptom
There is a problem with upgrade project from Atlantis to Apollo
There is corruption in table TESTCYCL, there are some test-instances with no parent test
 
They are orphan: the tc_test_id is pointer to not exsiting test.
 
When we upgrade this kind of project the upgrader: TestConfigurationUpgrader
Update TESTCYCL table and update the field: TC_TEST_CONFIG_ID with the formula: TC_TEST_CONFIG_ID FIELD= TC_TEST_ID+1000
 
There is another problem the test-instance pointer to not existing configuration
 
After upgrade, verifier runs again, verifier is added to look for orphan entities with missing parent of type:
 
Test configuration or test criteria
 
In version project (from Maya) when you delete test-config the related entities are not deleted (test-instance, run, run-criteria and configuration coverage)
So the verifier that check for orphan test-instance is failing, because he resume that the test exist, he found test-instances that don’t have test-config parent (and test parent)
 
So it’s failed the upgrader process

Answer

Customer resolution
The fix is relevant for upgrade of project from Atlantis.
Because there are corruption in Atlantis project after the upgrade is running it’s create new corruptions in the new created table like test_config and test _criteria so the verify/repair found these problem after upgrade and the upgrade is failing
 
Fix Version
Release Status
11.00 Completed Patch 10
Internal Change Request
QCCR1J26109