Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006924TestLinkTest Spec. - Ghost Test Case Stepspublic2015-02-02 06:202015-02-07 10:52
Reporterswang3 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.9.12 (2014 Q3) 
Fixed in Version1.9.13 (2015 #1) 
Summary0006924: Ghost string disappeared and overridden by the actual test step description when updating a test case to a new version
DescriptionWhen we perform a new version to a test case which have a test step with ghost string, the ghost string will be overridden by the actual test step description. It would be better to still keep the ghost string.
Steps To ReproduceTested on both 1.9.12 and 1.9.13 latest DEV build.
1. In one step of a test case, put the ghost string of another test case in. For instance:
[ghost]"Step":2,"TestCase":"-_--2","Version":2[/ghost]
2. Click "Save & Exit" and this test step will show the ghost test step, for instance:"This is test step 2.". If you click into this test step, it will show the ghost string.
[ghost]"Step":2,"TestCase":"-_--2","Version":2[/ghost]
3. In the test case Action toolbar, click "New version" for this test case. It's now the version 2 of this test case. If you click that step with ghost string, it will show the step text ("This is test step 2."), not the ghost string.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships

-  Notes
(0022620)
fman (administrator)
2015-02-02 06:49

file: testcases.class.php
method:
  function copy_tcversion($id,$from_tcversion_id,$to_tcversion_id,$as_version_number,$user_id)


replace
  // Need to get all steps
    $stepsSet = $this->get_steps($from_tcversion_id);

with
   // Need to get all steps
    $gso = array('renderGhostSteps' => false, 'renderImageInline' => false);
    $stepsSet = $this->get_steps($from_tcversion_id,0,$gso);

retest and provide feedback (I do not have time to test right now)
(0022622)
swang3 (reporter)
2015-02-02 07:00

Test and it works. Thanks a lot.
(0022652)
fman (administrator)
2015-02-07 10:52

1.9.13 released 20150207

- Issue History
Date Modified Username Field Change
2015-02-02 06:20 swang3 New Issue
2015-02-02 06:49 fman Note Added: 0022620
2015-02-02 06:49 fman Assigned To => fman
2015-02-02 06:49 fman Status new => feedback
2015-02-02 07:00 swang3 Note Added: 0022622
2015-02-02 07:00 swang3 Status feedback => assigned
2015-02-02 16:17 fman QA Team - Task Workflow Status => READY FOR TESTING
2015-02-02 16:17 fman Status assigned => resolved
2015-02-02 16:17 fman Fixed in Version => 1.9.13 (2015 #1)
2015-02-02 16:17 fman Resolution open => fixed
2015-02-07 10:52 fman Note Added: 0022652
2015-02-07 10:52 fman Status resolved => closed



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker