« Return to Thread: Using XSL sheet to exclude resources from grinder proxy
Hi,Not sure if you are aware, but you didn't actually give a problem statement. I assume therefore that the changes you have made are removing the extra resources. This is a very practical and important task for any performance script that is based off a web recording.Before I attempt to start helping, could you clarify what your end goal is along with what your current changes to the default xslt are designed to do and finally what the end result is when you run against your xslt.I appreciate your interest, I have worked in this area before and know it is not trivial.Kind Rgds,Ouray VineySent from my iPhoneAny one please ?
On Thu, Jun 21, 2012 at 6:19 PM, portail galaxie <portail.galaxie@...> wrote:
Hello,
I am trying to use xslt sheet to exclude a list of resources, my xsl file is as follow :
<?xml version="1.0" encoding="UTF-8"?>
<!---->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:g="http://grinder.sourceforge.net/tcpproxy/http/1.0" xmlns:helper="net.grinder.plugin.http.tcpproxyfilter.XSLTHelper">
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.css')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.jpg')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.jpeg')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.png')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.ico')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.gif')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.js')]" mode="page-function"/>
<xsl:template match="g:request[contains(g:uri/g:path/g:text,'.swf')]" mode="page-function"/>
<g:page mode="TestRunner">
<xsl:value-of select="helper:newLineAndIndent()"/>
<xsl:text>result=None</xsl:text>
</g:page>
</xsl:stylesheet>
Can any one help me please.
java -classpath %CLASSPATH% net.grinder.TCPProxy -console -http pathtomyfile\sheet.xsl -properties TCPProxy.properties > mygrinder.py
Thx.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
« Return to Thread: Using XSL sheet to exclude resources from grinder proxy
| Free embeddable forum powered by Nabble | Forum Help |