Search code examples
visual-studio-2012performance-testingload-testingwebtestcontext-param

bind data source to Context Parameters in Web Performance Test using Visual Studio?


I have a web performance test which tests an API. My API has Context parameters for which I would like to fetch values form database. I can find how to fetch/bind values to Form Post parameters, but I need for Context Parameters. Please help me in finding how to bind data source to Conext Paramters.

Example : my URI below

{{AppServer}}/test/{{DeptID}}/{{EmpID}}/Empinfo

AppServer, DeptID, EmpID are my context paramters


Solution

  • I found answer in this link : I need to remove context parameters and then directly bind the value in URI. Visual Studio Load/Performance Tests - Parameterizing REST values in the URL