wmaop / wm-jbehave

Unit Testing for webMethods Flow services with a Behavioural Driven style
https://github.com/wmaop/wm-jbehave/wiki
MIT License
5 stars 3 forks source link

Credentials Issue Causes Repeated Login Failures #13

Closed Geraden07 closed 7 years ago

Geraden07 commented 7 years ago

Currently if a user provides incorrect credentials and attempts to run the wm-jbehave unit tests, it attempts to login with these incorrect credentials for each and every test case, causing numerous failed login attempts which can lead to account lockouts.

Ideally, after the first failed connection attempt, all subsequent tests should be aborted to avoid this.

sysgen commented 7 years ago

Added System.exit(1) which aborts running of story file however if multiple story files exist, will try once per file. This reduces the attempts but not perfectly.

Geraden07 commented 7 years ago

This was my original thought, and I tried it actually be later removed it from my pull request because it wasn't fully addressing the issue.

Might I suggest in the BeforeStories part trying to connect once and if the connection fails, exit before any stories are launched?