Redirects return 404 errors

144 views
Skip to first unread message

Julian

unread,
Nov 9, 2015, 9:20:49 AM11/9/15
to Gatling User Group
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
Redirect404.JPG
ClickContent.txt

Julian

unread,
Nov 9, 2015, 9:49:51 PM11/9/15
to Gatling User Group
What is expected is at least the redirects return HTTP 3XX and/or 2XX, but Gatling returns HTTP 404. Why is that so?

Julian

unread,
Nov 10, 2015, 1:13:26 AM11/10/15
to Gatling User Group
Is this an issue in the script, the application under test or Gatling?

Stéphane LANDELLE

unread,
Nov 10, 2015, 2:01:56 AM11/10/15
to gat...@googlegroups.com
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.

Stéphane Landelle
GatlingCorp CEO


On Tue, Nov 10, 2015 at 7:13 AM, Julian <jag0...@gmail.com> wrote:
Is this an issue in the script, the application under test or Gatling?

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Stéphane LANDELLE

unread,
Nov 11, 2015, 7:28:12 AM11/11/15
to gat...@googlegroups.com
See answer in your other thread.

Stéphane Landelle
GatlingCorp CEO


On Wed, Nov 11, 2015 at 10:57 AM, Julian <jag0...@gmail.com> wrote:
Sorry. Just a little pressured as I am currently tasked to present a (Gatling) POC to my seniors, ASAP. And, frankly speaking, I'm quite lost. So I was hoping to get quick answers.
Anyway, I'll try to search the archives again. Thanks.

adrian...@hushmail.com

unread,
Nov 11, 2015, 10:11:44 AM11/11/15
to gat...@googlegroups.com
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

On 11/11/2015 at 9:57 AM, "Julian" <jag0...@gmail.com> wrote:
Sorry. Just a little pressured as I am currently tasked to present a (Gatling) POC to my seniors, ASAP. And, frankly speaking, I'm quite lost. So I was hoping to get quick answers.
Anyway, I'll try to search the archives again. Thanks.

On Tuesday, November 10, 2015 at 3:01:56 PM UTC+8, Stéphane Landelle wrote:

Julian

unread,
Nov 11, 2015, 11:57:55 PM11/11/15
to Gatling User Group

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 :)

adrian...@hushmail.com

unread,
Nov 12, 2015, 2:13:51 AM11/12/15
to gat...@googlegroups.com
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.


Aidy
--
Reply all
Reply to author
Forward
Message has been deleted
0 new messages