This is a migrated thread and some comments may be shown as answers.

Load Testing - Appending Dynamic Values

7 Answers 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 19 Sep 2019, 09:04 PM

When I log into our .net application a token is returned in the content

That token is set to the auth header.  The problem is, the way the application works there's a prefix infront of the token.

For example:

HTTP Response Token in Content after successful login

YdafjdQ3adNfzaFfdiaZfdjfQtafZdafGM4ZC00NdGa5YmE1NzUzZWQwOS8xOS8yMDE5IDQ6NTc6NDggUE0=

The Authorization now expects that TESTAPI is infront of the auth header with the token

TESTAPI YdafjdQ3adNfzaFfdiaZfdjfQtafZdafGM4ZC00NdGa5YmE1NzUzZWQwOS8xOS8yMDE5IDQ6NTc6NDggUE0=

Is there anyway to append or make changes to a value (Cookie/Content/Header) that requires more than just what is copied from a previous step?

7 Answers, 1 is accepted

Sort by
0
Accepted
Elena
Telerik team
answered on 20 Sep 2019, 01:32 PM

Hello David,

I already provided some getting started guidance into another public, recent thread you submitted in regards load testing. In addition to the shared details there, here is how you can append the values of the custom dynamic targets. 

You will need to use the step, which response contains the authorization token as a source for the dynamic target. Using the different search options, define the value provided for the token. Then comes the append method in the destination section of the custom dynamic target - what you need is to enter the name of the header followed by colon (:), then the text expected from server and last the defined dynamic value from the source step set as value in curly brackets - {value}. Please, see a screenshot for reference. 

Please, give this a try and let me know if there are any troubles in implementing this approach. Please, note that it is available in our latest official Service Pack edition 2019.2.903. 

Thanks for your cooperation in advance.

Regards,
Elena
Progress Telerik

 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
David
Top achievements
Rank 1
answered on 20 Sep 2019, 04:39 PM

Elena! 

Thank you for your response, sorry about the multiple posts... once I read up on dynamic targets I got what I needed to do :) (note to self: read first than post)

 

I will give this a try and provide my feedback, note I am using 2019.2.619.0

0
David
Top achievements
Rank 1
answered on 21 Sep 2019, 01:43 PM

Elena 

there’s a new problem

I finally got the correct Regex to get the data, and started working with dynamic variables.

The problem though is now any step that I am pushing a dynamic value to does not run, no 400 or 500... nothing it’s as if the step doesn’t exist (it’s enabled too)

I had fiddler running when the test was, but could conclude what I saw there is that those http gets were not even running.

any ideas where to look? 

0
Plamen Mitrev
Telerik team
answered on 23 Sep 2019, 01:01 PM

Hi David,

Please allow me to step in this discussion, as my colleague Elena is out of the office today.

My experience with load testing leads me to believe that there is something wrong with the request and this is why Test Studio is not even sending it out. If that is actually the case, there should be more details in the Test Studio application log. Please gather it and attach it zipped to your next reply.

I would also like to ask you for the .tstest file of the load test that you are working on, located in the project root folder, and the recorded fiddler trace from the load test execution. It will be best to look at those resources in combination with the log file and try to find what is causing this issue.

Thank you for your cooperation.

Regards,
Plamen Mitrev
Progress Telerik

 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
David
Top achievements
Rank 1
answered on 23 Sep 2019, 01:18 PM

Thanks Plamen...

While I work to get that over to you (I will send in direct message).  Here is a small part of the log as this is repeated over and over in the log, which I think your understanding is correct

[09/23 09:12:47,Telerik.TestStudio.Load.Agent.exe(7728:11)] First trace message from pool unnamed thread (managed ID = 11, native ID = 3460).
[09/23 09:12:47,Telerik.TestStudio.Load.Agent.exe(7728:11),Error] OutstandingRequest.Run() : Value missing from dynamic output binding "5383528a-4653-4adf-9eb4-55297cecdb0c", and no default value was provided!
[09/23 09:12:47,Telerik.TestStudio.Load.Agent.exe(7728:11),Load] ExecutionContext.RunInternal() : During wait for idle, request faulted or completed and marked false.
[09/23 09:12:47,Telerik.TestStudio.Load.Agent.exe(7728:8)] First trace message from pool unnamed thread (managed ID = 8, native ID = 7940).
[09/23 09:12:47,Telerik.TestStudio.Load.Agent.exe(7728:8),Error] OutstandingRequest.Run() : Value missing from dynamic output binding "5383528a-4653-4adf-9eb4-55297cecdb0c", and no default value was provided!
[09/23 09:12:47,Telerik.TestStudio.Load.Agent.exe(7728:8),Load] ExecutionContext.RunInternal() : During wait for idle, request faulted or completed and marked false.

0
David
Top achievements
Rank 1
answered on 23 Sep 2019, 01:24 PM
Guess I don't have the ability to send you a direct message, would prefer not to attach the .tstest file here on a public forum.
0
Elena
Telerik team
answered on 24 Sep 2019, 07:55 AM

Hello David,

As you have submitted a private support thread with the requested details, I will continue our particular discussion there. 

Only, as a side note, here in the public conversation, I would like to note that the minimum version of Test Studio you need in order to use the recommended approach to append dynamic target, is 2019.2.903 - currently this will be available for download if you check for updates in the product, or if you download it from your Telerik account

Thanks once again for your cooperation. 

Regards,
Elena
Progress Telerik

 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Elena
Telerik team
David
Top achievements
Rank 1
Plamen Mitrev
Telerik team
Share this question
or