Break in Execution flow of Gatling script

Hi,

I have following transactions in my test case:

  1. Login
  2. Click on Menu Item (ex: Find)
  3. Select Type of Search from drop down
  4. Click on search button

when i start test in gatling, after click on menu item the test was stopping and generating results.

After executing 1,2 The control is not going to 3,4 transactions.

I am unable to see any errors while test is running.

Why the control is not going to other transactions?

Regards,
Narasimha

Crystal ball says you forgot some dots between step 2 and 3 so the end of your scenario is not attached.

HI,

My script as below. Please check once.

.exec(http(“STEP2”)
.post("""/instance/templatex.jsf""")
.headers(headers_5)
.param(""“mainHeaderForm”"", “”“mainHeaderForm”"")
.param(""“javax.faces.ViewState”"", “”"${vs1}""")
.param(""“javax.faces.source”"", “”“mainHeaderForm:careMenuItem”"")
.param(""“javax.faces.partial.event”"", “”“click”"")
.param(""“javax.faces.partial.execute”"", “”“mainHeaderForm:careMenuItem @component”"")
.param(""“javax.faces.partial.render”"", “”"@component""")
.param(""“org.richfaces.ajax.component”"", “”“mainHeaderForm:careMenuItem”"")
.param(""“mainHeaderForm:careMenuItem”"", “”“mainHeaderForm:careMenuItem”"")
.param(""“rfExt”"", “”“null”"")
.param(""“AJAX:EVENTS_COUNT”"", “”“1"”")
.param(""“javax.faces.partial.ajax”"", “”“true”""))
.pause(250 milliseconds)
.exec(http(“STEP2_redirecting”)
.get("""/instance/template.jsf""")
.check(regex(“Search Value”).exists)
.check(css(“input[name=‘javax.faces.ViewState’]”, “value”).saveAs(“vs2”))
.headers(headers_6))
.pause(2)
.exec(http(“STEP3”)
.post("""/instance/templatey.jsf""")
.headers(headers_7)
.param(""“Main”"", “”“Main”"")
.param(""“Main:j_idt119"”", “”“ACCID”"")
.param(""“Main:j_idt124"”", “”"""")
.param(""“Main:cid”"", “”"""")
.param(""“Main:j_idt137"”", “”“u_sadm”"")
.param(""“javax.faces.ViewState”"", “”"${vs2}""")
.param(""“javax.faces.source”"", “”“Main:j_idt119"”")
.param(""“javax.faces.partial.event”"", “”“change”"")
.param(""“javax.faces.partial.execute”"", “”“Main:j_idt119 @component”"")
.param(""“javax.faces.partial.render”"", “”"@component""")
.param(""“javax.faces.behavior.event”"", “”“valueChange”"")
.param(""“org.richfaces.ajax.component”"", “”“Main:j_idt119"”")
.param(""“rfExt”"", “”“null”"")
.param(""“AJAX:EVENTS_COUNT”"", “”“1"”")
.param(""“javax.faces.partial.ajax”"", “”“true”""))
.pause(2)
.exec(http(“STEP4”)
.post("""/instance/template.jsf""")
.headers(headers_7)
.param(""“Main”"", “”“Main”"")
.param(""“Main:j_idt119"”", “”“ACCID”"")
.param(""“Main:j_idt124"”", “”“A1992022997"”")
.param(""“Main:cid”"", “”"""")
.param(""“Main:j_idt137"”", “”“u_sadm”"")
.param(""“javax.faces.ViewState”"", “”"${vs2}""")
.param(""“javax.faces.source”"", “”“Main:searchbutton”"")
.param(""“javax.faces.partial.event”"", “”“click”"")
.param(""“javax.faces.partial.execute”"", “”“Main:searchbutton @component”"")
.param(""“javax.faces.partial.render”"", “”"@component""")
.param(""“org.richfaces.ajax.component”"", “”“Main:searchbutton”"")
.param(""“Main:searchbutton”"", “”“Main:searchbutton”"")
.param(""“rfExt”"", “”“null”"")
.param(""“AJAX:EVENTS_COUNT”"", “”“1"”")
.param(""“javax.faces.partial.ajax”"", “”“true”""))
.pause(300 milliseconds)

Full scenario, please?
A gist would be better than pasting in email.

Hi,

I am unable to attach file due to some issues.

Please find my script below.

Your scenario looks fine.
What probably happens is that some of your requests can’t be sent (can’t be built because of missing EL parameter, or exception such as ConnectException) and are not counted. However, you should get logs in WARN level.

This was changed in upcoming version.
You can try the snapshot here:
https://github.com/excilys/gatling/wiki/Continuous-Integration