Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
leleuj committed Feb 1, 2024
1 parent 35d5a2f commit f184e11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import com.casinthecloud.simpletest.execution.Execution;
public class Main {

public static void main(final String... args) throws Exception {
new Execution(3, 1000, CasLogin::new).launch();
new Execution(6, 2000, CasLogin::new).launch();
}
}
```
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/com/casinthecloud/simpletest/cas/CasLogin.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ protected String callLoginPage(final Context ctx) throws Exception {
protected void postCredentials(final Context ctx, final String loginUrl) throws Exception {
val webflow = substringBetween(ctx.getBody(), "name=\"execution\" value=\"", "\"/>");

val username = getUsername();
val password = getPassword();
info("Logging in: " + username + " / " + password);

val fp = ctx.getFormParameters();
fp.put("username", getUsername());
fp.put("password", getPassword());
fp.put("username", username);
fp.put("password", password);
fp.put("execution", webflow);
fp.put("_eventId", "submit");
fp.put("geolocation", "");
Expand Down

0 comments on commit f184e11

Please sign in to comment.