Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007969TestLinkUsabilitypublic2017-06-09 10:202017-07-12 08:46
Reporterasishgupta 
Assigned Tofman 
PriorityhighSeverityminorReproducibilityunable to reproduce
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.9.14 (2015 Q3) 
Fixed in Version 
Summary0007969: Can TestLink be integrated with GIT
DescriptionHi,
We have Redmine for bug tracking and GIT for the code coverage.
Is it possible to link TestLink with GIT (versioning control system) .

Regards
ASISH KUMAR GUPTA
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP VersionPHP version: 5.5.35
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0026458)
fman (administrator)
2017-06-09 18:22

do not use mantis for this kind of questions => forum
in addition your request is not clear
(0026469)
hughkay (reporter)
2017-06-12 05:24

Well, as the official Testlink does not have this feature yet,
I've implemented a linkage to Bitbucket/Stash for our purposes.
There we can link test cases (i.e. the specification) in Testlink with the corresponding test script (i.e. the procedure) in Stash (which uses GIT).

So, yes it is possible.
However, this was kind of a major update, due to new SQL database tables, new source code files etc.

If requested as a common use case, I may do an official pull request and share my implementation.
What do you need that for?
(0026470)
asishgupta (reporter)
2017-06-12 05:49

Thanks hughkay for your suggestions.
As per your note , TestLink does not have this feature of integrating with GIT
but can be done by linking TestLink with Bitbucket which is linked to GIT.

Actually i wanted suggestion on directly linking TestLink with GIT .
(0026471)
hughkay (reporter)
2017-06-12 06:07
edited on: 2017-06-12 06:11

What is your use case? What do you need that linking for?
What exactly do you want to link?

(0026472)
fman (administrator)
2017-06-12 07:04

@hughkay
IMHO having your contribution available for community will be a good thing.
(0026473)
hughkay (reporter)
2017-06-12 07:28

Ok, I'll put my code into the latest code basis from github and create a pull request.
However, I haven't tested it on the latest github version, though, as I'm using a release version.
(0026476)
hughkay (reporter)
2017-06-12 09:08
edited on: 2017-06-12 09:12

I've created a pull request:
https://github.com/TestLinkOpenSourceTRMS/testlink-code/pull/104 [^]

Further code management systems (e.g. SVN etc.) may be added in the future as well.
For now only Bitbucket/Stash is supported.

(0026576)
fman (administrator)
2017-07-10 17:06

would you mind to provide requested information?
(0026577)
hughkay (reporter)
2017-07-11 08:51

@fman: what do you need to know?
The new feature allows to add one or more links to Stash on the "Test Specification" page for a single test case.
Hence there is a link between test specification and procedure, as it should be.
(0026578)
fman (administrator)
2017-07-11 10:34

I'm sorry I was not clear. my question is for original reporter => asishgupta
(0026582)
asishgupta (reporter)
2017-07-11 13:08

Hi fman,
If you are asking the purpose of Testlink integration with GIT then here it is.

I need integration of TestLink with GIT for the purpose of automation.
For example Jenkins will be used to integrate with TestLink such that the job executed through Jenkins will access the testlink and will execute the associated script linked to the test case . This associated script will be stored in a repository like GIT.

Regards,
ASISH KUMAR GUPTA
(0026584)
hughkay (reporter)
2017-07-11 14:18

@asishgupta: my new feature from the pull request above should cover that use case.
I have a similar scenario for test automation.
Results are then automatically pushed back to Testlink after execution via the XMLRPC API.
(0026586)
asishgupta (reporter)
2017-07-11 16:03

Thanks hughkay for responding.
Can you plz share the steps ?

Regards,
ASISH KUMAR GUPTA
(0026589)
hughkay (reporter)
2017-07-12 06:31

1) after creating a test project, go to "Code Tracker Management" on the desktop page (within "System" field on the left)
2) add your connection to Stash analog to "Issue Tracker Management" settings
3) go to "Test Project Management" page and select your project. Add the newly created Code tracker to it, analog to "issue tracker"
4) now go to "test specification" page and create/select a test case from the tree
5) on the right pane you should see the attributes of the test case, including a new item "Code management". Click on the icon next to it in order to link a new test script to the test case
6) a popup window will open which allows you to select a project, a repository and an optional branch name from your Stash server
7) after selecting the items above, a tree menu will open on the popup page which shows all files in that repository. You can expand/collapse the tree as demanded and select the file/directory of choice in order to link it.
8) click on the "Save" button in order to establish the link
9) the test case page will reload after closing the popup showing a new table below "Code management" with all the details of your newly linked test script
10) if you wish to delete the script, just click on the red crossed icon on the right of the table. After confirming a warning message the link will be deleted from the database again.
(0026591)
asishgupta (reporter)
2017-07-12 08:22

@hughkay: There is no such "Code Tracker Management" within the "System".
I am using Testlink 1.9.14.
(0026592)
hughkay (reporter)
2017-07-12 08:46

You'll have to use at least 1.9.15 together with my add-on from the PR branch.

- Issue History
Date Modified Username Field Change
2017-06-09 10:20 asishgupta New Issue
2017-06-09 18:22 fman Note Added: 0026458
2017-06-12 05:24 hughkay Note Added: 0026469
2017-06-12 05:49 asishgupta Note Added: 0026470
2017-06-12 06:07 hughkay Note Added: 0026471
2017-06-12 06:11 hughkay Note Edited: 0026471 View Revisions
2017-06-12 07:04 fman Note Added: 0026472
2017-06-12 07:28 hughkay Note Added: 0026473
2017-06-12 09:08 hughkay Note Added: 0026476
2017-06-12 09:12 hughkay Note Edited: 0026476 View Revisions
2017-07-10 17:06 fman Note Added: 0026576
2017-07-10 17:06 fman Assigned To => fman
2017-07-10 17:06 fman Status new => feedback
2017-07-11 08:51 hughkay Note Added: 0026577
2017-07-11 10:34 fman Note Added: 0026578
2017-07-11 13:08 asishgupta Note Added: 0026582
2017-07-11 13:08 asishgupta Status feedback => assigned
2017-07-11 14:18 hughkay Note Added: 0026584
2017-07-11 16:03 asishgupta Note Added: 0026586
2017-07-12 06:31 hughkay Note Added: 0026589
2017-07-12 08:22 asishgupta Note Added: 0026591
2017-07-12 08:46 hughkay Note Added: 0026592



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker