0
votes

The application I'm handling is using AWS cognito login. Facing issue with the Dynamic SRP_A value and Im getting the below error

{"__type":"NotAuthorizedException","message":"Incorrect username or password."}

I have read through the post below and included the method in JSR223 pre-processor However I'm not clear on how to call this method in the http sampler. Could someone explain bit elaborate.

Refered post: Issue while running the recorded scripts in jmeter for aws cognito login

Thanks

1

1 Answers

0
votes

You can't call it "in the http sampler".

Forget about HTTP Sampler for that case whatsoever, just follow the advice you've been given in the post you've mentioned:

With regards to Cognito the easiest way is using AWS Java SDK from JSR223 Test Elements using Groovy language

and implement the needed logic as Groovy code with JSR223 sampler.