www..com

Integrating YouTrack with TestLink

Compatibility Integration between YouTrack and TestLink is supported for TestLink 1.8 and higher, and YouTrack 2.0 and higher.

Configuring Integration Between TestLink and YouTrack To integrate YouTrack with TestLink: 1. Download YouTrack-TestLink_Integration_1.0.zip, which contains two PHP-scripts: • .cfg. — configuration file for YouTrack custom parameters • int_youtrack.php — main file implementing integration between YouTrack and TestLink 2. Un-zip downloaded archive and copy files to proper directories: • copy youtrack.cfg.php to /cfg directory • copy int_youtrack.php to /lib/bugtracking directory 3. in the /lib/bugtracking/int_bugtracking.php file add YOUTRACK to the $btslist parameter values. before: // Add new bugtracking interfaces here // If user configures an interface not declared here, nothing happens => no error $btslist = array(‘’,’MANTIS’,’’, ‘JIRASOAP’, ‘TRACKPLUS’, ‘EVENTUM’,’’,’SEAPINE’,’’,’GFORGE’,’FOGBUGZ’); after: // Add new bugtracking interfaces here // If user configures an interface not declared here, nothing happens => no error $btslist = array(‘BUGZILLA’,’MANTIS’,’JIRA’, ‘JIRASOAP’, ‘TRACKPLUS’, ‘EVENTUM’,’TRAC’,’SEAPINE’,’REDMINE’,’GFORGE’,’FOGBUGZ’, ‘YOUTRACK’);

4. Enable php_curl.dll support in php.ini (refer to http://www.php.net/manual/en/curl.requirements.php for more info). To do so, uncomment the respective string: before: ;extension=php_curl.dll after: extension=php_curl.dll

© 2003 - 2010 JetBrains, Inc. All rights reserved. www.jetbrains.com

Integrating YouTrack with TestLink

5. In TestLink, configure YouTrack interface. To do so, edit file /cfg/youtrack.cfg.php: • Specify credentials to access YouTrack server. We recommend creating special user account in YouTrack for integration purposes, with the necessary permissions to read issues so they can be displayed on the execute test screen (see the Using Integration Between TestLink and YouTrack section below). You can also use guest user credentials, if it’s enabled in your YouTrack instance. • Specify baseURL of the YouTrack server.

/** The Username for login in YouTrack */ define(‘YOUTRACK_USERNAME’, “”); /** The Password for login in YouTrack */ define(‘YOUTRACK_PASSWORD’, “”); /** URL to your YouTrack service */ define(‘YOUTRACK_URL’, “”);

6. In TestLink, enable BTS integration: in the custom_config.inc.php file add the following line: $g_interface_bugs=’YOUTRACK’;

Using Integration Between TestLink and YouTrack When the integration is successfully configured, log in to TestLink and execute one of test cases. When the test case has been executed, access to bug management system (in our case to YouTrack instance) will be available:

After clicking on icon, the following window will be opened:

© 2003 - 2010 JetBrains, Inc. All rights reserved. www.jetbrains.com

Integrating YouTrack with TestLink

If you already have an issue number, you can use it, otherwise you click on the link to access YouTrack, opening a new window. For the first time, you will be redirected to the Dashboard, prompting to log in with your own credentials in order to be able to create a new issue:

If you are already logged in to YouTrack, you will be redirected to the New Issue form immediately:

After having created the issue, you return to TestLink window to add the issue id. Click Add bug after specifying issue id:

© 2003 - 2010 JetBrains, Inc. All rights reserved. www.jetbrains.com

Integrating YouTrack with TestLink

Clicking on Close, you return to execute screen, with the link to specified issue displayed:

The link also shows the current state of the issue. Clicking on link, you will get to the apropriate issue:

© 2003 - 2010 JetBrains, Inc. All rights reserved.