Page 1 of 1

How to reset external ID of test case

PostPosted: Fri Apr 13, 2018 10:24 am
by jffeng_cloud
Testlink version: 1.9.16

I import some of test cases from another project, but I found some of cases external ID are too big(>20000000), so I export all the cases and modify the XML file content, and import it again, it can resolve the big external ID issue.
But while I create new case in this project, the external ID for the new case still too big(>20000000). I don't want to recreate the project, how can I resolve the issue? Thanks.

Re: How to reset external ID of test case

PostPosted: Wed Apr 18, 2018 7:23 am
by jffeng_cloud
I modified some PHP code to achieve my request. This is not good method, but it did work.

1. Add one line in the function create_tcase_only() - ../lib/function/testcase.class.php
$this->tproject_mgr->setTestCaseCounter($tproject_id,3200,true);

2. Then create a test case in Web GUI, the external ID was reset to 3200.

3. Remove the code in step #1