Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterizing Dynamic Data #28

Closed
sirwinks opened this issue Jan 2, 2013 · 1 comment
Closed

Parameterizing Dynamic Data #28

sirwinks opened this issue Jan 2, 2013 · 1 comment

Comments

@sirwinks
Copy link

sirwinks commented Jan 2, 2013

Hello,

I am having trouble parameterizing dynamic data in the deserialized AMF/XML file. There is a two step authentication process that occurs when logging into my app:

  1. Authentication Request Add support for GraniteDS Remoting #1 is submitted
    • The response back from the app contains the dsid and ticket
  2. Authentication Request Add support for AMF0 #2 is submitted which contains the dsid and ticket

I have regular expression extractors setup which scrape the dsid and ticket from Request #1's response. I'm having trouble figuring out exactly how to configure Request #2 to populate with the dsid and ticket captured from the regular expression extractor.

In the XML Editor of Request #2, I updated the request to look like this:

     <headers>
        <entry>
          <string>DSId</string>
          <string>${dsid_0}</string>
        </entry>
        <entry>
          <string>DSEndpoint</string>
          <string>my-secure-amf</string>
        </entry>
      </headers>
      <operation>authUser</operation>
      <parameters>
        <string>MyUserID</string>
        <string>${ticket_0}</string>
      </parameters>

When I execute the test, I see an "Invalid Ticket" exception in the Response Data tab of View Results Tree. In the Debug Sampler, I see that the regular expression extractor did successfully capture the dsid and ticket. My guess is there is an issue with the way in which I am updating the dsid and ticket in the second authentication request.

Do you have any advice on how to properly update dynamic data in a request that comes from the response of a previous request?

Thanks for your time,
Chris

@sirwinks
Copy link
Author

sirwinks commented Jan 8, 2013

Problem resolved. My regex for the ticket was incorrect. It was grabbing an extra character.

@sirwinks sirwinks closed this as completed Jan 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant