Parameterizing JASON request in Web Application VS 2013 Ultimate Load Test


  1. Steps : 

    1. Record your script 
    1. Add a CSV, SQL Server Data-source in your Web Test.
    1. Expand Your JSON Request URL.
    1. Right Click on String Body and click “Find and Replace in Request”
                
    1. Select the request highlighted blue and press cntr+c and copy content
    2. Paste it in note pad

    1. Bind columns of data source with parameters in request. In format (“{{Datsource Name.Table Name. Column Name}}”)

    1. Open Properties of Body
    1. Open String Body Property and paste the request from note pad in this
    1. Now its doen re run your test to verify.

    If you don’t know how to load test application check this link http://testingtoolstecniques.blogspot.com/2014/08/load-testing-web-application-with.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s