'JMeter Test case to login over dynamic CRM

We have to migrate the existing visual studio web test over JMeter. Blazemeter we are using to record test case and when we are trying to run it over JMeter, it is failing while authentication against Dynamics CRM instance and it errors out 500 internal server error, with no other details.

Please let me know if you have done this already against any of the dynamic CRM instances.

Thanks



Solution 1:[1]

I don't think record-and-replay will work as the process is simply stupidly putting hard-coded values everywhere without making any correlation

The options are in:

  1. Manually going through the recorded test plan identifying dynamic parameters, adding relevant post-processors to extract dynamic values and replace hard-coded values with the JMeter Variables from the post-processors
  2. Re-record your test scenario using Correlations Recorder Plugin for JMeter, there you will be able to pre-populate the correlation rules beforehand
  3. Re-record your test using BlazeMeter Proxy Recorder, it's capable of exporting recorded tests in "SmartJMX" mode with automatic detection and correlation of the dynamic parameters (most probably you will still have to do some manual polishing)

Solution 2:[2]

This has been resolved, need to authenticate against AAD OAuth2 with client credentials flow before calling any Dynamic CRM API.

I am providing all required details to get authenticated first and then parsing response to retrieve access token and passing in subsequent API calls and that works. This is what have done. Please let me know if anyone wanted to know details about this.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T
Solution 2 yuvraj