Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004211TestLinkNew Featurepublic2011-02-01 17:422012-12-15 07:55
Reporterpierre 
Assigned Tofman 
PrioritynormalSeverityfeature requestReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.9 (Prague) 
Fixed in Version 
Summary0004211: Direct links to test reports for quick access and referenceability
DescriptionIt would be very usefull to get the reports through http links directly.

Of course, it is necessary to provide some arguments in the URL such as TestPlan, start/end date etc.

Rational :
- keep a central data
- use directly the information of TestLink
- no aditional export to be done in Excel

Is it possible to integrate such feature in TL?
TagsNo tags attached.
Database (MySQL,Postgres,etc)Mysql
Browser
PHP Version
TestCaseID
QA Team - Task Workflow Status
Attached Filespng file icon direct-links.png [^] (44,560 bytes) 2012-12-06 21:17


png file icon Scenario_1.png [^] (40,761 bytes) 2012-12-07 12:15


png file icon Scenario_3.png [^] (95,626 bytes) 2012-12-08 09:13


png file icon Scenario_3.1.png [^] (29,678 bytes) 2012-12-08 09:14


png file icon Scenario_4.png [^] (82,495 bytes) 2012-12-08 10:03

- Relationships
related to 0005407closedfman General Test Plan Metrics - direct link without login 
parent of 0005405closedfman metrics dashboard - direct link without login 
parent of 0005408closedfman Test result matrix - direct link without login 
parent of 0005411closedfman Charts - direct link without login 

-  Notes
(0013559)
Julian (reporter)
2011-02-08 08:19

Andreas please check if linkto.php can be extended for this purpose.
(0016664)
sander (reporter)
2012-05-10 21:57

I would like to 'vote' for this feature request as well. Here is my use-case, from my forum post:

Hi,

I just activated a nightly test script that logs results into TestLink using the API. The script also maintains a web page that lists the nightly test runs and a result summary. I would like to add a URL that when clicked displays a report or page from TestLink that shows all results for a build or release, preferably also sliced with suite names. Right now it seems TL is mostly meant for interactive use where the user clicks on tree nodes to make data appear on the right hand side. This is nice but is it possible to construct URLs that show this data?

Is this possible? If not then I'll file a Mantis ticket but I understand this may be hard to implement.

I appreciate all you've done maintaining TestLink for us.

Sander

----
(0017905)
seajays (reporter)
2012-11-26 09:24

Add our vote to this as well. We need to take our produciton changes through change control and one of the key things is to provide evidence of testing. Testlink is used to manage our testing, but at the moment we can't store a direct link to the test report in change control, which is a real pain.
(0017907)
fman (administrator)
2012-11-26 10:56

@users
developement can be take moment if someone is ready to provide some contribution to our work
(0017981)
fman (administrator)
2012-12-06 21:17
edited on: 2012-12-06 21:21

First implementation will be available with 1.9.5, in partial way.
See attached image

How this works
A link is provided and authentication is done via same api key used to access TestLink via XML-RPC API.

You can provide link WITHOUT APIKEY (because generated link put apikey of logged used on URL), and said people to use HIS/HER OWN API.
Example:
http://localhost:8080/development/gitrepo/tlcode/lnl.php?apikey=XXXXXXXXXXXXXX&tproject_id=8&tplan_id=9&type=blockedtestcases [^]

You can also have another choice: create different USERS WITH JUST ACCESS TO REPORTS, and provide link to the users that have to access the report PUTTING in the URL THIS APIKEY.

If user have no rights to access the reports, or test project and/or test plan,
user will get the LOGIN SCREEN.

(0017982)
fman (administrator)
2012-12-06 21:28

still waiting for someone able to provide us support.
(0017983)
fman (administrator)
2012-12-06 22:09

when report is accessed this way, we need to add on report a link PRINTED that indicates which is the source of the report.
May be we can print the TestLink instance identification ?
(0017989)
Amaradana (reporter)
2012-12-07 12:15

Not sure if i have a to log a different issue,if so please let me know am putting all the cases in here related to this feature.

Scenario 1:
API Key is not enabled, also User should not have api key generated
1. Login to TestLink
2. Create Test Project/Test Plan/Builds/ Assign test cases
3. Now navigate to reports and try to access the link which routes to fatal error as for screen shot 1

Scenario 2:
API Key is enabled, also user should not have api key generated
1. Login to TestLink
2. Create Test Project/Test Plan/Builds/ Assign test cases
3. Now navigate to reports and try to access the link which routes to fatal error as for screen shot 1

Scenario 3:
API Key is enabled, also user have api key generated
1. Login to TestLink
2. Create Test Project/Test Plan/Builds/Assign test cases (only Public Test plans etc)
3. Now navigate to reports copy the URL for failed test cases. and open the link in IE browser, java script error is found. below are the error details

 Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Fri, 7 Dec 2012 12:10:04 UTC


Message: Object expected
Line: 51
Char: 2
Code: 0
URI: http://localhost/5/lib/results/resultsByStatus.php?apikey=8744ae4e0b211f0532667781b30787c9&tproject_id=1&tplan_id=2&type=f&format=0 [^]

After java script error no reults found.

I havent worked on scenarios which i got, but hope full i will test today with respect to other scenarios like private test projects and test plans

Please do let me know if i have to log different issues for these
(0017991)
fman (administrator)
2012-12-07 14:27

it's ok log all the problems here

thanks
(0018000)
fman (administrator)
2012-12-08 08:43

>> Scenario 1:
>> Scenario 2:
MISSING APIKEY on call
Better error management added
(0018001)
fman (administrator)
2012-12-08 08:44

>> Scenario 3
1. need better description, may be an screenshoot
2. can you test with other Browsers ?
(0018002)
Amaradana (reporter)
2012-12-08 09:13

for Scenario 3: java Script Issue is with IE. For Chrome user is not able to see the results

Attaching Screen shots

I will add other scenarios soon.
(0018003)
Amaradana (reporter)
2012-12-08 10:03

Scenario 4:
API Key is enabled, also user should have api key generated
Java script error when trying to click for linkto report
1. Login to TestLink as admin
2. Create Test Project/Test Plan/Builds/Assign test cases
3. Now navigate to reports and change the format type to Excel/office calc/Email, now click on the icon to get the link to the report, a java script error is poped up. refer screen shot

Scenario 5:
API Key is enabled, also user should have api key generated
User is getting logged out from the system when trying to access the link in another tab
1. Login to TestLink as admin
2. Create Test Projecing t/Test Plan/Builds/Assign test cases(all are created as Private and created by admin user only)
3. Now navigate to reports, now click on the icon to get the link of the report,
4. Copy the link and open the link in another tab of the browser, System is logging out the user when trying to access

I want to do some more tests, please let me know when to download the new code and test this.
(0018029)
fman (administrator)
2012-12-12 07:06

Code is ready for a new run
(0018052)
Amaradana (reporter)
2012-12-14 08:19

Hi,

I am busy with my sister wedding for 1 week, once this got settled i will start testing this and let you know.
(0018053)
fman (administrator)
2012-12-14 09:48

do not worry, enjoy the party!!!!
(0018066)
fman (administrator)
2012-12-15 07:55

ATTENTION to URLENCODE apikey

- Issue History
Date Modified Username Field Change
2011-02-01 17:42 pierre New Issue
2011-02-02 17:42 fman Priority high => normal
2011-02-03 08:30 Julian Status new => acknowledged
2011-02-08 08:18 Julian Assigned To => asimon
2011-02-08 08:18 Julian Status acknowledged => assigned
2011-02-08 08:19 Julian Note Added: 0013559
2011-05-23 09:28 Julian Summary Get the reports through http links directly => Direct links to test reports for quick access and referenceability
2012-05-10 21:57 sander Note Added: 0016664
2012-11-26 09:24 seajays Note Added: 0017905
2012-11-26 10:56 fman Note Added: 0017907
2012-11-27 21:24 fman Assigned To asimon => fman
2012-12-06 21:17 fman Note Added: 0017981
2012-12-06 21:17 fman File Added: direct-links.png
2012-12-06 21:21 fman Note Edited: 0017981 View Revisions
2012-12-06 21:28 fman Note Added: 0017982
2012-12-06 22:09 fman Note Added: 0017983
2012-12-07 12:15 Amaradana Note Added: 0017989
2012-12-07 12:15 Amaradana File Added: Scenario_1.png
2012-12-07 14:27 fman Note Added: 0017991
2012-12-08 08:43 fman Note Added: 0018000
2012-12-08 08:44 fman Note Added: 0018001
2012-12-08 09:13 Amaradana Note Added: 0018002
2012-12-08 09:13 Amaradana File Added: Scenario_3.png
2012-12-08 09:14 Amaradana File Added: Scenario_3.1.png
2012-12-08 10:03 Amaradana Note Added: 0018003
2012-12-08 10:03 Amaradana File Added: Scenario_4.png
2012-12-08 18:37 fman Relationship added parent of 0005405
2012-12-09 11:41 fman Relationship added related to 0005407
2012-12-09 11:41 fman Relationship added parent of 0005408
2012-12-09 11:41 fman Relationship added parent of 0005411
2012-12-12 07:06 fman Note Added: 0018029
2012-12-14 08:19 Amaradana Note Added: 0018052
2012-12-14 09:48 fman Note Added: 0018053
2012-12-15 07:55 fman Note Added: 0018066



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker