'how to run java selnium junit Tests using groovy

I am using ReadyAPI which use Groovy as Scripting language.

But, I built a Selenium 4 framework which Tests some IHMs in my work using java8 and Junit4, and it works very fine.

Please, can you help me on how to run my Java Juint Tests using Groovy Script.

` package com.cegedim.framework.scenarios;

 import com.cegedim.framework.functional.Transverse;
 import com.cegedim.framework.functional.modules.LoginModule;
 import com.cegedim.framework.functional.webpages.url.URLS;
 import com.cegedim.framework.reporting.Reporter;
 import com.cegedim.framework.utils.TestBase;
 import org.junit.Test;

 public class TestLogin extends TestBase {
     @Test
     public void main() {
    Reporter.getInstance().logInfo("Start Login Test Case.");
    Transverse.get(URLS.TPG_URL);
    LoginModule.login("rootfab", "profils", "EXPLOIT");
    Reporter.getInstance().logInfo("Finish Login Test Case.");
}

}` ErrorError In readyAPIwhich uses Groovy as Scripting language in the image.

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source