How to reset external ID of test case

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

How to reset external ID of test case

Postby jffeng_cloud » Fri Apr 13, 2018 10:24 am

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.
jffeng_cloud
TestLink user
 
Posts: 3
Joined: Thu Apr 12, 2018 5:52 pm

Re: How to reset external ID of test case

Postby jffeng_cloud » Wed Apr 18, 2018 7:23 am

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
jffeng_cloud
TestLink user
 
Posts: 3
Joined: Thu Apr 12, 2018 5:52 pm


Return to TestLink 1.9



Who is online

Users browsing this forum: No registered users and 9 guests