Redirects return 404 errors

Hi. I’m using Gatling 2.1.7.

I have a scenario which requests are apparently redirected. What I find odd is that some of the redirects return 404 errors and some do not. How should I deal with this?I have read some posts in the forum and tried everything but nothing seemed to be working for me. Please help. Thanks.

P.S. Attached is a part of my script where redirects mainly happen and a screenshot of the results

ClickContent.txt (14.3 KB)

What is expected is at least the redirects return HTTP 3XX and/or 2XX, but Gatling returns HTTP 404. Why is that so?

Is this an issue in the script, the application under test or Gatling?

You chose to not receive any notification from this group, except for the threads that you join, meaning that you miss a lot of information being passed here. My 2 cents are that you face a similar issues that has already been answered here this month. Please search the archives.

See answer in your other thread.

Hi Julian,

I’d probably stay away from the recorder and static resources for the time being and write your script from the information you can retrieve from browser developer tools while executing your test manually.

It might also be worth pairing with a Java or even Scala dev on your first few simulations to get a feel for a development environment and workflow.

We also gained much benefit from the training course Stepane offers. But I wouldn’t give in because you won’t come across a more promising load tool.

Aidy

I’d probably stay away from the recorder and static resources for the time being and write your script from the information you can retrieve from browser developer tools while executing your test manually.

It might also be worth pairing with a Java or even Scala dev on your first few simulations to get a feel for a development environment and workflow.

Frankly, I was not able to do this when I was starting since the requirement of a new Performance Testing tool POC was urgently needed. So no training and all, I read the documentation and depended on using the Recorder, not to mention asking help from this User Group. But, for sure, I will find time to do this.

We also gained much benefit from the training course Stepane offers. But I wouldn’t give in because you won’t come across a more promising load tool.

I am using the tool for quite some time now but I am still unsure if what I do is right or what am I missing. I am the first one to use it in our office so no one’s really helping me except from the Gatling User Group. Apart from that, I am on my own. I’m also positive that it is indeed a promising tool that’s why I’m pretty serious about learning it and hopefully be able to use it properly.

I appreciate the tips, Aidy!

Thanks :slight_smile:

If you can give me access to your site, I can write you a script this afternoon.

Otherwise, I normally demo with the Gatling computer database site.

https://github.com/bbc/gatling-load-tests/blob/master/src/test/scala/bbc/kraftwerk/ComputerWorld.scala

Aidy