java - Login user session in functional Test. Play Framework 1.2.5 -
i need login user, can access methods return data need test.
i able login, http.request this.
map<string, string> loginuserparamscompany5 = new hashmap<string, string>(); loginuserparamscompany5.put("username", "user@company.com"); loginuserparamscompany5.put("password", "userpassword"); http.response loginresponse = post("/login", loginuserparamscompany5);
after user logged out.
string session = scope.session.current().get("logged");
this return null.
i want way keep user logged in, or login other way, can have access method need.
Comments
Post a Comment