Author Topic: check regex return value on gatling.io  (Read 3860 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
check regex return value on gatling.io
« on: กุมภาพันธ์ 12, 2016, 12:45:55 PM »
.exec(http("Login_Transaction")
            .post( "/screen/index.htm")
            .headers(headers)
            
            /* feed from useruat.csv */
            .formParam("TRX_TYPE", "")
            .formParam("C_PASSWORD", "abc")

            //Check regex after login page if could login will found "SYS_top" word .
             .check(status.is(200))
             .check(regex("SYS_top")))
          
« Last Edit: กุมภาพันธ์ 12, 2016, 03:05:33 PM by golfreeze »