java - Check fails even if it exists in scala -


I entered a session in Scala, a request is failing, even if I see source And inspect element can see that tag. I tried other hidden fields, but it seems that it has not been found. Here is the script:

  val scn = scenario ("scenario name") .feed (csv ("user_credentials.csv") .exec (http ("request_1") .get ("/" Check out (1) .exec (. (". "" "" "" "" "" "," ("" "" "" ") .Perm (" "" c_username "," $ $ username} "). Param ("" "javax.faces.ViewState", "$ {seestate_id}"). ("" Error "which is found by me,  
  ceeghaGatlingAynynHandlerActor - request 'Request_1' failed : Check 'exists' failed, found none   

tag me & lt; input id = "javax.faces.ViewState" has been found ... /> in the source, but this script is not able to find it. I have other areas and some hidden Tried to test with the areas, all other components have been found besides this. How to solve this problem?

I suspect that this problem is that id is not actually your viewest object of javax.faces.ViewState - name Will Javax.faces.ViewState , but in the implementation of JSF I have seen, the id is something like j_id1: javax.faces.ViewState: 0 .

Follow the instructions to deal with JSF in Gatting will be a simple solution. Or, you can search for the viewstat element instead of ID - like something:

  .check (css ("" "input [name =" javax.faces.ViewState "]" "" " , "Value"). Saving A ("ViewTest_ID"))   

should do the trick.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -