Whenever a bug is encountered, QA needs to report it using some Test Management tool. During an automation run also we encounter failures and we need to report them as bugs. It can be a tedious task to repeat the steps manually take screenshots, write the failure details and then upload everything into a Test Management tool. Reporting can become quite easy if there a way by which Test tool can directly upload the defect to the Test Management tool.
Telerik Test Studio allows you to connect to Team Foundation Server or TFS for logging defects/failures encountered during test execution. Test studio offers seamless integration with TFS. Let’s have a look how to connect to TFS to report bugs.
1) Open Test Studio and Click on the “Bug Tracking” button on the top right side.
Manage Bug Tracking pop-up will open with the list of Test server to choose from.
2) Click on the Edit button beside Team Foundation Server
This will open a Bug Tracking Setup pop-up. Bug Tracking Setup can be used to configure Test Studio with Team Foundation server.
3) Now enter server URL for your TFS server. Once the server URL has been provided, you will need to login to the server. There are two ways to logIn, you can use Windows Authentication by using checkbox.
If you choose to use Windows Authentication following pop-up will appear, asking you for your Microsoft user account and password. Enter details and click on sign in.
4) If you don’t want to use windows authentication then you can leave the checkbox blank and provide Domain, Username and password directly via Bug Tracking Step. Once you have provided all the details, click on connect button.
5) Once connected to the server a message will appear stating “Great! We Were able to connect to that Server”.
6) Once the server has been connected, choose the Team Project Collection and Team Project from the drop down. It will contain all the list of collections and projects present in the provided TFS server.
7) Click on “Save” button.
8) Bug Tracking Setup pop-up will close and server name/green check will appear beside Team Foundation Server, showing that it has been successfully connected to the server.
9) Now, click on the Settings icon on the top right side of the Manage Bug Tracking. This will open an Advance Setting pop-up.
10) From the Bug Tracking Advance Setting pop-up select the available checkbox.
If you want to attach failure details or if you want to auto submit the bug to TFS select the required checkboxes.
For auto-submitting the bug to TFS, we will need to make TFS our default Bug tracking server. So, check the default checkbox in front of Team Foundation Server to mark it as default bug tracking server.
11) Click on “Save” button and TFS will be connected to Test Studio.
Validate data is being passed on to TFS server
Let’s create a test with an invalid step or we can also tweak an existing test case so that it can fail at a certain step while we run it. Let’s run it and see the result.
As expected the test have failed:
Now, double click on the red failure sign at the failed step. It will open Step failure Details pop-up. Step failure details pop-up contains failure summary, Failure screenshot and other details.
Now click on the “Submit bug” button. Submit bug button will open Submit Bug dialog box. This dialog box contains Bug name, which is basically the step name which failed in the test appended with the text “test failed”.
Another part is the description of the failure which is directly imported from the failure summary provided by the Telerik. This summary might not be too specific about the failure, so Test Studio allows you to edit the description so as to make it more understandable by the user.
Once, you have provided all the details, click on the Submit button. The bug will be submitted and following test box will appear stating that the bug has been “submitted to the Team Foundation Server”.
Click on OK and the bug will be submitted.
Now, let’s open our TFS server and validate that the bug has been submitted to the TFS server.