« Return to Thread: Using XSL sheet to exclude resources from grinder proxy

Re: Using XSL sheet to exclude resources from grinder proxy

by portail galaxie :: Rate this Message:

| View in Thread

Hi,

The main problem is exculding ressources from  a scenario.
The purpose of the xslt sheet is to avoid adding extra calls to a scenario recorded using the TCPproxy. So when I run the tcpproxy using the xsl file the recorded scenario will be free ressources. but this didn't work using the xslt sheet below.

it's clearer now ?

Regards.

On Fri, Jun 22, 2012 at 1:14 PM, Ouray Viney <ouray@...> wrote:
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 Viney

Sent from my iPhone

On 2012-06-22, at 6:25, portail galaxie <portail.galaxie@...> wrote:

Any 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



------------------------------------------------------------------------------
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