|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Displaying testinfo in webtest report overview instead of webtest reportVAN: Niels
Stevens Hi, I’m trying to get the info from the
testinfo tags to display on the overview page under every test. I tried just
moving the testinfo-segment from WebTestReport.xsl to
WebTestReportOverview.xsl, but that doesn’t work. I don’t know anything about
xslt, so any help would be appreciated. |
|
|
Re: Displaying testinfo in webtest report overview instead of webtest reportHi Niels,
This is actually pretty simple to accomplish. The way the WebTestReportOverview is generated requires you to not only modiy WebTestReportOverview.xsl, but also WebTestReportSummaryExtractor.xsl. We don't pull all test info onto the Overview report, but we do pull specific test info labeled tags. Hopefully this example will give you a starting point for your own modification. In WebTestReportSummaryExtractor.xsl, we added the following to pull the info out of the "tags" test info type: <xsl:variable name="tags" select=".//step[@taskName = 'testInfo']/parameter[@name = 'type' and @value = 'tags']/../parameter[@name = 'info']/@value" /> <summary successful="{@successful}" name="{@testspecname}" duration="{$duration.total}" tags="{$tags}" starttime="{@starttime}"> In WebTestReportOverview.xsl, we added the following: <xsl:template match="summary" mode="summary"> <tr> <td class="light" align="right"> <xsl:number count="folder"/> </td> <td class="light" align="center"> <xsl:apply-templates select="." mode="successIndicator"/> </td> <td class="light" nowrap="nowrap"> <a href="{../@name}/WebTestReport.html"> <xsl:value-of select="@name"/> </a> <p style="margin-top: 0px; margin-bottom: 0px; font-size: x-small"><b>tags: </b><span name="tags"><xsl:value-of select="@tags"/></span></p> </td> Good luck, John Spann Software Engineer Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117 T: +1 805 690 3489 | M: +1 805 729 0008 john.spann@...<x-msg://29/john.spann@...> http://www.citrixonline.com<http://www.citrixonline.com/> [cid:image001.png@...] Access Your PC From Anywhere: www.gotomypc.com<http://www.gotomypc.com/> Online Meetings Made Easy: www.gotomeeting.com<http://www.gotomeeting.com/> Remote Support Made Easy: www.gotoassist.com<http://www.gotoassist.com/> Web Events Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/> On Oct 9, 2009, at 5:25 AM, Niels Stevens wrote: VAN: Niels Stevens Verzonden: vrijdag 9 oktober 2009 13:51 Aan: 'webtest@...<mailto:'webtest@...>' Onderwerp: Displaying testinfo in webtest report overview instead of webtest report Hi, I’m trying to get the info from the testinfo tags to display on the overview page under every test. I tried just moving the testinfo-segment from WebTestReport.xsl to WebTestReportOverview.xsl, but that doesn’t work. I don’t know anything about xslt, so any help would be appreciated. |
|
|
Encoding issueHi,
In the test report if I click on some of the responses, I see some strange characters. Our site is using iso-88951. Do I need to set any encoding settings? Thanks, Haneef -----Original Message----- From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of John Spann Sent: Friday, October 09, 2009 12:30 PM To: webtest@...; Niels Stevens Subject: Re: [Webtest] Displaying testinfo in webtest report overview instead of webtest report Hi Niels, This is actually pretty simple to accomplish. The way the WebTestReportOverview is generated requires you to not only modiy WebTestReportOverview.xsl, but also WebTestReportSummaryExtractor.xsl. We don't pull all test info onto the Overview report, but we do pull specific test info labeled tags. Hopefully this example will give you a starting point for your own modification. In WebTestReportSummaryExtractor.xsl, we added the following to pull the info out of the "tags" test info type: <xsl:variable name="tags" select=".//step[@taskName = 'testInfo']/parameter[@name = 'type' and @value = 'tags']/../parameter[@name = 'info']/@value" /> <summary successful="{@successful}" name="{@testspecname}" duration="{$duration.total}" tags="{$tags}" starttime="{@starttime}"> In WebTestReportOverview.xsl, we added the following: <xsl:template match="summary" mode="summary"> <tr> <td class="light" align="right"> <xsl:number count="folder"/> </td> <td class="light" align="center"> <xsl:apply-templates select="." mode="successIndicator"/> </td> <td class="light" nowrap="nowrap"> <a href="{../@name}/WebTestReport.html"> <xsl:value-of select="@name"/> </a> <p style="margin-top: 0px; margin-bottom: 0px; font-size: x-small"><b>tags: </b><span name="tags"><xsl:value-of select="@tags"/></span></p> </td> Good luck, John Spann Software Engineer Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117 T: +1 805 690 3489 | M: +1 805 729 0008 john.spann@...<x-msg://29/john.spann@...> http://www.citrixonline.com<http://www.citrixonline.com/> [cid:image001.png@...] Access Your PC From Anywhere: www.gotomypc.com<http://www.gotomypc.com/> Online Meetings Made Easy: www.gotomeeting.com<http://www.gotomeeting.com/> Remote Support Made Easy: www.gotoassist.com<http://www.gotoassist.com/> Web Events Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/> On Oct 9, 2009, at 5:25 AM, Niels Stevens wrote: VAN: Niels Stevens Verzonden: vrijdag 9 oktober 2009 13:51 Aan: 'webtest@...<mailto:'webtest@...>' Onderwerp: Displaying testinfo in webtest report overview instead of webtest report Hi, I'm trying to get the info from the testinfo tags to display on the overview page under every test. I tried just moving the testinfo-segment from WebTestReport.xsl to WebTestReportOverview.xsl, but that doesn't work. I don't know anything about xslt, so any help would be appreciated. _______________________________________________ WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
| Free embeddable forum powered by Nabble | Forum Help |