mardi 6 août 2019

Why am I getting AssertionViolatedException in my java code?

I am trying to write an automated test and the code successfully compiles but when i try executing it as "Java Application", I am getting an AssertionViolatedException error and the code won't execute.

I have already tried:

  1. changing the sendKeys("string") to sendKeys(new String[] {"string"}).

  2. executing the application with: "Run as: JAVA APPLICATION"

  3. setting the jre environment in build path.

The error message I am getting is:

Exception in thread "main" org.apache.bcel.verifier.exc.AssertionViolatedException: FOUND: INTERNAL ERROR: Oops! Exiting!!

at org.apache.bcel.verifier.exc.AssertionViolatedException.main(AssertionViolatedException.java:102)

Aucun commentaire:

Enregistrer un commentaire