please consider the scenario...
I am creating script of CreateNewFolder of my web application.
.exec(http("request_")
.post("/url/home")
.formParam("action_id", "9")
.formParam("projectId", "${projectId}")
.formParam("isForEdit", "false")
.check(jsonPath("$.distData.roleList[25].roleId").saveAs("roleId"))
.check(jsonPath("$.distData.userList[10].userID").saveAs("userID")))
.exec(http("Create_New_Folder")
.post("/url/home")
.formParam("action_id", "7")
.formParam("projectId", "${projectId}")
.formParam("folderId", "0")
.formParam("AdminRoleId", "${roleId}")
.formParam("isWorkspace", "1")
.formParam("extra", """{"folderName":"+dateTime+","security":{"defaults":[{"name":"defalt","acessId":1}],"users":[{"hashedUserId":"${userID}","userName":"User112"}],"roles":[{"roleId":"${roleId}","roleName":"Administrator"}]}}"""))
.pause(3)
Can anyone guide me, why is this happening???
full error message: "jsonPath($.distData.roleList[25].roleId).find(0).exists failed, could not prepare: Boon failed to parse into a valid AST: -1"
Your help would be much appreciated.
thanks, Praveen Mourya