|Anonymous | Login | Signup for a new account||2019-12-15 14:09 UTC|
|Main | My View | View Issues | Change Log | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000082||Testlink 1.6.x||Reports, Metrics, Export and Print||public||2005-09-05 12:19||2005-12-10 09:30|
|Fixed in Version||1.6.0|
|Summary||0000082: Test reports and metrics -> Blocked test cases, guest mode links to wrong testcases|
|Description||For a test plan I've got some test cases that are blocked.|
Under my normal user (admin) clicking the test case in the blocked test case report opens up the correct test case. The link points to here ".../testlink/lib/execute/execSetResults.php?keyword=All&level=testcase&owner=All&build=1&id=76"
However if I now log in as a guest (which is what I want anyone who's interested in the test case results to do) the link now links to the wrong test case. The link points to here ".../testlink/lib/testcases/archiveData.php?edit=testcase&data=76".
I would expect the guest rights to let you view the correct test case from the blocked report (and actually let you see all the test cases in the test report view too as that would be handy).
|Additional Information||I could have mucked things up by removing some test cases from the test plan but I didn't think I'd done this on any test cases that I'd run.|
|Tags||No tags attached.|
edited on: 2005-11-08 15:18
The same also happens for Failed Test Cases.
We have given our developers guest access so that they can view the failed / blocked test cases and work on them. But the test case shown is a different one than that shown for the testers.
I checked the code and found that in case of testers the SQL is querying the test case ID from the testcase table [/testlink/lib/execute/execSetResults.php - line # 104] whereas for the guest user it is querying from the mgttestcase table [/testlink/lib/testcases/archive.inc.php - line # 64].
Then I check the /testlink/lib/results/resultsByStatus.php which actually shows the failed test cases report and found it calling the function getTCLink [line # 83] which is defined in /testlink/lib/functions/results.inc.php [line # 105-118].
Here I found that depending upon the execute rights for the user different links are called.
So finally I have narrowed down the culprit being in either the results.inc.php code [getTCLink()] or the sql query in the archive.inc.php code [getTestcase()].
Would be greatfull if you could fix it as this is a major defect from a developers' perspective who access testlink to get only the failed/blocked test cases.
System specs: TestLink 1.6.RC2, Mantis 1.0.0rc3 on Windows XP SP2 and Uniform Server 3.2a
Thanks for your help, I will try to fix it before Friday. (on version 1.6)
You can get in in SourceForge Last Snapshot
changes in results.inc.php, execSetResults.tpl
|2005-09-05 12:19||bleachy||New Issue|
|2005-09-07 09:37||fman||Status||new => assigned|
|2005-09-07 09:37||fman||Assigned To||=> fman|
|2005-11-08 15:16||scorpfromhell||Note Added: 0000284|
|2005-11-08 15:18||scorpfromhell||Note Edited: 0000284|
|2005-11-08 15:27||fman||Note Added: 0000285|
|2005-11-09 08:16||fman||Status||assigned => resolved|
|2005-11-09 08:16||fman||Fixed in Version||=> next release|
|2005-11-09 08:16||fman||Resolution||open => fixed|
|2005-11-09 08:16||fman||Note Added: 0000288|
|2005-12-10 09:30||fman||Status||resolved => closed|
|Copyright © 2000 - 2019 MantisBT Team|