Web Performance Test Recorded scenario generates “Data.aspx” on Clicking “+New” button or onloading Existing Record. This Requests get a new CRMWRPCToken for each request. We need to Extract this Token from the Request and send back with Create/Update request with Header.
Please find below steps to Extract CRMWRPCToken from “Data.aspx” request:
1. Record the Create request (Ex: Create Account) by using Web Performance Test (Please refer Part-3 for the same)
2. Go to recoded Webtest
3. Find the request like “…/form/data.aspx”. This is the request execute when we initiate the Create request (Clicking +NEW). CRM sends WRPC_TOKEN as part of this response.
CRMWRPCToken Extraction Rule:
1. Right click on Data.aspx and select “Add Extraction Rule”
2. Right click on created Rule – Select Properties
3. Provide the Properties as below:
CRMWRPCToken
[\{“]Token”?:\s?[‘”]([a-zA-Z0-9\\/+]{24,})[‘”]
CRMWRPCTokenTimeStamp Extraction Rule:
1. Right click on Data.aspx and select “Add Extraction Rule”
2. Right click on created Rule – Select Properties
3. Provide the Properties as below:
CRMWRPCTokenTimeStamp
“?Timestamp”?:\s?”([0-9]{12,})”

Like
Report
*This post is locked for comments