[keycloak-dev] keycloak tomcat8 custom tests

Luis Rodríguez Fernández uo67113 at gmail.com
Wed Oct 31 14:10:33 EDT 2018


Hello there,

OK for the moment with something like

@Before
    public void initBrowser() {
        HtmlUnitTestDriver d = new HtmlUnitTestDriver();
        d.getWebClient().getOptions().setJavaScriptEnabled(true);
        d.getWebClient().getOptions().setCssEnabled(false);
        d.getWebClient().getOptions().setTimeout(1000000);
        browser = d;
    }

plus LoginPage loginPage = PageFactory.initElements(browser,
LoginPage.class);

I can continue working.

Thanks!

Luis








El mié., 31 oct. 2018 a las 18:03, Luis Rodríguez Fernández (<
uo67113 at gmail.com>) escribió:

> Hello there,
>
> I need to write some tests and I would like to use the classes under
> org.keycloak.testsuite.pages and org.keycloak.testsuite.rule
>
> Including integration-arquillian-tests-base (4.6.0.Final-SNAPSHOT) allows
> me to use LoginPage (ho-ho!).However it fails miserabily when I
> try loginPage.login("bburke", "password"); cause  usernameInput attribute
> is null (ouch!)
>
> I've tried desesperately including the
> keycloak-testsuite-integration-deprecated artifact (4.6.0.Final-SNAPSHOT)
> in my project but no luck...
>
> Any thoughts on this?
>
> Thanks in advance,
>
> Luis
>
>
>
>
>
>
>

-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


More information about the keycloak-dev mailing list