{"id":10722,"date":"2015-11-24T18:19:00","date_gmt":"2015-11-24T18:19:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2015\/11\/24\/testing-java-applications-with-visual-studio-team-services\/"},"modified":"2022-08-02T23:35:15","modified_gmt":"2022-08-03T07:35:15","slug":"testing-java-applications-with-visual-studio-team-services","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/testing-java-applications-with-visual-studio-team-services\/","title":{"rendered":"Testing Java Applications with Visual Studio Team Services"},"content":{"rendered":"<p>If you watched the <a href=\"https:\/\/channel9.msdn.com\/events\/Visual-Studio\/Connect-event-2015\">Connect() event<\/a> I am sure you noticed that we are focusing on enabling <a href=\"https:\/\/visualstudio.microsoft.com\">cross platform development<\/a> with Visual Studio Team Services.<\/p>\n<p>This definitely includes testing those applications.\u00a0\u00a0 The new Visual Studio Team Services includes build tasks to make it easy to integrate your build and testing efforts into your release pipelines with rich reporting highlighting build-on-build changes, easy to create actionable bugs for regressions and the ability to create and display code coverage with a simple checkbox.\u00a0<\/p>\n<ul>\n<li><a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/24\/testing-java-applications-with-visual-studio-team-services.aspx#Build\">Build Integration<\/a><\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/24\/testing-java-applications-with-visual-studio-team-services.aspx#Summary\">Build-on-build Summary Results<\/a><\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/24\/testing-java-applications-with-visual-studio-team-services.aspx#Details\">Test Details View<\/a><\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/24\/testing-java-applications-with-visual-studio-team-services.aspx#Bugs\">Easily Create Actionable Bugs<\/a><\/li>\n<li><a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/24\/testing-java-applications-with-visual-studio-team-services.aspx#Coverage\">Code Coverage Results<\/a><\/li>\n<\/ul>\n<p>Note: If you prefer videos you can also see the same information on Channel9: <a href=\"https:\/\/channel9.msdn.com\/Series\/Test-Tools-in-Visual-Studio\/Testing-Java-Applications-with-Visual-Studio-Team-Services\" title=\"https:\/\/channel9.msdn.com\/Series\/Test-Tools-in-Visual-Studio\/Testing-Java-Applications-with-Visual-Studio-Team-Services\">https:\/\/channel9.msdn.com\/Series\/Test-Tools-in-Visual-Studio\/Testing-Java-Applications-with-Visual-Studio-Team-Services<\/a><\/p>\n<h2>Build Integration<\/h2>\n<p>The new Visual Studio Team Services build tasks makes it easy to build to build Java applications. These same tasks also make it easy to test your Java applications.\u00a0 In the example below we are using Maven to build the Java application then using both Maven and Perfecto Mobile to test the Java application\u2026<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/2480.image_thumb_6EDFBC19.png\" alt=\"image\" width=\"667\" height=\"565\" border=\"0\" \/><\/p>\n<p>The output of these tests and other testing frameworks is made available to the standard Test Reports through the \u201cPublish Test Results\u201d task.<\/p>\n<p>Note in the image below the task defaults to importing the test results from Junit.<\/p>\n<p><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/2728.image_thumb_4B69CB33.png\" alt=\"image\" width=\"712\" height=\"505\" border=\"0\" \/><\/p>\n<h2>Build-on-build Summary Results<\/h2>\n<p>Visual Studio Team Services automatically adds build-on-build changes in the summary view to give a clear indication if your quality is improving.<\/p>\n<p>In the example below you can see 16 new tests were added(Yeah!) but 6 of those tests are now failing and the build time is now MUCH longer.\u00a0<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/4544.image_thumb_355CAC22.png\" alt=\"image\" width=\"661\" height=\"376\" border=\"0\" \/><\/p>\n<h2>Test Details View<\/h2>\n<p>Where the summary view gives build-on-build changes the Test Details view lets us identify the problem \u2013and easily action them.<\/p>\n<p>In this view we display all the failed test information and by selecting the failed test display all the data you need action this issue such as: the error message, duration, failing agent and stack trace.<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/4578.image_thumb_1BF4A8E8.png\" alt=\"image\" width=\"678\" height=\"386\" border=\"0\" \/><\/p>\n<h2>Easily Create Actionable Bugs<\/h2>\n<p>After an issue has been identified the Test Details view makes it trivial to create actionable bugs that include all the the data from from the details view(error message, duration, failing agent and stack trace) plus automatically linking the build, test run and automatically generates a title\u2026reducing the bug creation process to near zero!<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/2746.image_thumb_651A54A1.png\" alt=\"image\" width=\"684\" height=\"390\" border=\"0\" \/><\/p>\n<h2>\u00a0<\/h2>\n<h2>Code Coverage Results<\/h2>\n<p>By checking an option in the test build task Code Coverage is automatically collected during the testing.\u00a0\u00a0 Just like the Test information the summary view shows the rollup data and the there is a detailed Coverage Results report that enables you to drill into your application and identify coverage in different areas of the application.<\/p>\n<p><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/1212.image_thumb_34775F0A.png\" alt=\"image\" width=\"714\" height=\"430\" border=\"0\" \/><\/p>\n<p><img decoding=\"async\" style=\"padding-top: 0px;padding-left: 0px;padding-right: 0px;border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/6014.image_thumb_3000DE43.png\" alt=\"image\" width=\"725\" height=\"476\" border=\"0\" \/><\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/0317.image_thumb_46CF9DAB.png\" alt=\"image\" width=\"709\" height=\"476\" border=\"0\" \/><\/p>\n<p>\u00a0<\/p>\n<h2>Summary<\/h2>\n<p>As you can see not only is Visual Studio Team Services is a great place for tracking and building your Java applications we are making it the place to test them too!<\/p>\n<p>Please check out our new Java site for more information <a href=\"https:\/\/visualstudio.microsoft.com\" title=\"https:\/\/visualstudio.microsoft.com\">https:\/\/visualstudio.microsoft.com<\/a><\/p>\n<p>\u00a0<\/p>\n<p>If you are testing Java Applications and currently using JMeter be sure and check out our JMeter preview: <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/19\/private-preview-running-apache-jmeter-load-tests-in-the-cloud.aspx\">http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/11\/19\/private-preview-running-apache-jmeter-load-tests-in-the-cloud.aspx<\/a><\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you watched the Connect() event I am sure you noticed that we are focusing on enabling cross platform development with Visual Studio Team Services. This definitely includes testing those applications.\u00a0\u00a0 The new Visual Studio Team Services includes build tasks to make it easy to integrate your build and testing efforts into your release pipelines [&hellip;]<\/p>\n","protected":false},"author":63,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>If you watched the Connect() event I am sure you noticed that we are focusing on enabling cross platform development with Visual Studio Team Services. This definitely includes testing those applications.\u00a0\u00a0 The new Visual Studio Team Services includes build tasks to make it easy to integrate your build and testing efforts into your release pipelines [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=10722"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=10722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=10722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=10722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}