Previous Next

Thread: WCat 6.3 postdata in an external file

Last post 09-11-2008 9:34 AM by yeep. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 09-02-2008, 1:08 PM

    • yeep
    • Not Ranked
    • Joined on 09-02-2008, 1:03 PM
    • Posts 5

    WCat 6.3 postdata in an external file

    Hello, I'm currently using WCat 6.3 to stress test a web service that our team has build. Since it's a SOAP webservice I need to send a whole load of XML through an HTTP POST request. So in the request script I assign a string containing the XML to the 'postdata' attribute. However, the WCat documentation state I should also be able to have the request in a separate file and tell the attribute to use the contents of the file. So far I have not been able to get it to work and a Google search doesn't help me either. Does any one have experience with this?

     Thanks in advance.

    Jeroen-bart Engelen

    Tags:
  • 09-02-2008, 4:13 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: WCat 6.3 postdata in an external file

    How do you specify the postdata in the client script file?

    Let's say your xml file is called soap.xml, the postdata will look like:

    postdata = <soap.xml>;

    Make sure to put soap.xml in the same folder as wcclient.exe on the client machine(s).

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 09-03-2008, 4:59 PM In reply to

    • yeep
    • Not Ranked
    • Joined on 09-02-2008, 1:03 PM
    • Posts 5

    Re: WCat 6.3 postdata in an external file

    I have copied the three files (settings, scenario and SOAP request) into the main WCat directory. This contains the wcclient.exe. I'm just running a local test.

    My scenario contains the postdata like this:
    postdata = <DeactivateAccount.Request>;

    And the file DeactivateAccount.Request is in the directory. It contains the complete SOAP envelope of the request I want to send.

    Then when I start WCat, it crashes hard (WinDBG pops up).

    Tags:
  • 09-03-2008, 9:32 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: WCat 6.3 postdata in an external file

    Can you try a file name with 8.3 notation instead of a long name for postdata?

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 09-06-2008, 9:24 PM In reply to

    • yeep
    • Not Ranked
    • Joined on 09-02-2008, 1:03 PM
    • Posts 5

    Re: WCat 6.3 postdata in an external file

     I renamed the file to a 8.3 size, but I still get the same crash.

    Maybe it's related to the contents of the file? I can't think of anything wrong with it. It's just an SOAP XML envelope, but it is completely formatted. Maybe that's a problem for WCat?

    Tags:
  • 09-09-2008, 6:42 AM In reply to

    Re: WCat 6.3 postdata in an external file

    To narrow down if the issue is specific to the input file, I'd suggest you test with another postdata file and see if it still gets crash. Thanks.

    WenJun Zhang - MSFT
    Sincerely
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 09-10-2008, 11:02 AM In reply to

    • yeep
    • Not Ranked
    • Joined on 09-02-2008, 1:03 PM
    • Posts 5

    Re: WCat 6.3 postdata in an external file

     I'm currently using a file called "account.req".

    The contents of this file are as follows: <testXml></testXml>
    (nothing more then those two tags)

    And WCAT still crashes.
    My transaction in the scenario file looks like this:
        transaction
        {
            id = "IptvDeactivateAccount";
            weight = 1;

            request
            {       
                postdata = <account.req>;
            }

            close
            {
                method      = graceful;
            }
        }

     

    Tags:
  • 09-10-2008, 9:39 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: WCat 6.3 postdata in an external file

    I just tried a simple test with a postdata file and don't see a WCAT crash. Can you remove the POST verb (verb = POST;) in the client script and see if that causes WCAT to not crash. If you have specified postdata in the client script it will be ignored when you remove the POST verb.

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 09-11-2008, 9:34 AM In reply to

    • yeep
    • Not Ranked
    • Joined on 09-02-2008, 1:03 PM
    • Posts 5

    Re: WCat 6.3 postdata in an external file

    Interesting, after removing the POST verb, it still crashes. If I re-add the POST verb and put the SOAP request in the scenario file inline (as a single line string), it works perfectly.

    Maybe it's time to mention my enviroment and add the settings and scenario file.

    I'm running 64-bit W2k8 Standard Server with IIS 7. The webservice I'm trying to test is build on ASP.NET for .NET 2.0. I have installed: .NET 2.0, .NET 3,0 and .NET 3,5 (all with latest service packs). I currently have DEP on only for specific Windows components (de first option in the dialog. I changed it because I have problems with VS2008 that I though might be related to DEP and I never turned it back on).

    I start WCAT like this:

    cscript wcat.wsf -terminate -run -f IDO.SOIPTV.Settings -t IDO.SOIPTV.Scenario

    My settings file is as follows:
    settings
    {
        server = "yeep-laptop";
        clients = 1;
        virtualclients = 1;

        counters
        {
            interval = 10;

            counter = "Web Service(_Total)\\Connection Attempts/sec" ;
            counter = "Web Service(_Total)\\Post Requests/sec" ;
        }
    }

    My scenario file is as follows:
    scenario
    {
        name    = "IDO SOIPTV Tests";

        warmup      = 30;
        duration    = 180;
        cooldown    = 30;

        default
        {
            setheader
            {
                name    = "Connection";
                value   = "close";
            }
           
            setheader
            {
                name    = "Content-Type";
                value   = "text/xml";
            }

            setheader
            {
                name    = "Host";
                value   = server();
            }
           
            setheader
            {
                name    = "SOAPAction";
                value   = "\"http://xmlns.kpn.com/ido/connector/request-1.0/Process\"";
            }

            version     = HTTP10;
            verb            = POST;
            close       = graceful;
            statuscode  = 200;
            url         = "/Ido-1.3.x/Ido.asmx";
        }

        transaction
        {
            id = "IptvDeactivateAccount";
            weight = 1;

            request
            {       
                postdata = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:req=\"http://xmlns.kpn.com/ido/connector/request-1.0\"><soapenv:Header/><soapenv:Body><req:Process><req:request><resourceOrderRequest><header><requestId>1234567890</requestId><timestamp>2008-01-22T00:00:00</timestamp><originator>SNI</originator><recipient>SOIPTV</recipient><synchronous>false</synchronous></header><body><id>1234567890</id><type>update</type><orderDateTime>2008-01-22T00:00:00</orderDateTime><roRequestItem><id>987654321</id><type>tvAccount</type><action>update</action><roRequestItemParameter><name>requesterId</name><value>mlo</value></roRequestItemParameter><roRequestItemParameter><name>requesterPassword</name><value>w8woord</value></roRequestItemParameter><roRequestItemParameter><name>retailerId</name><value>000124</value></roRequestItemParameter><roRequestItemParameter><name>technicalAccountNumber</name><value>20000000000054</value></roRequestItemParameter><roRequestItemParameter><name>status</name><value>inactive</value></roRequestItemParameter></roRequestItem></body></resourceOrderRequest></req:request></req:Process></soapenv:Body></soapenv:Envelope>";
            }

            close
            {
                method      = graceful;
            }
        }
    }

    WCAT works with these files as they are. If I replace the postdata with a file, it crashes.

    Tags:
Page 1 of 1 (9 items)
Page view counter