Added integration-arqullian SAML example page objects

This commit is contained in:
mhajas 2015-12-09 10:42:02 +01:00
parent 68e3b6c504
commit 1d401767d6
3 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,32 @@
package org.keycloak.testsuite.adapter.page;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.net.URL;
/**
* @author mhajas
*/
public class SAMLPostEncExample extends AbstractPageWithInjectedUrl {
public static final String DEPLOYMENT_NAME = "saml-post-encryption";
@ArquillianResource
@OperateOnDeployment(DEPLOYMENT_NAME)
private URL url;
@FindBy(tagName = "a")
WebElement logoutButton;
@Override
public URL getInjectedUrl() {
return url;
}
public void logout() {
logoutButton.click();
}
}

View file

@ -0,0 +1,32 @@
package org.keycloak.testsuite.adapter.page;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.net.URL;
/**
* @author mhajas
*/
public class SAMLPostSigExample extends AbstractPageWithInjectedUrl {
public static final String DEPLOYMENT_NAME = "saml-post-signatures";
@ArquillianResource
@OperateOnDeployment(DEPLOYMENT_NAME)
private URL url;
@FindBy(tagName = "a")
WebElement logoutButton;
@Override
public URL getInjectedUrl() {
return url;
}
public void logout() {
logoutButton.click();
}
}

View file

@ -0,0 +1,32 @@
package org.keycloak.testsuite.adapter.page;
import org.jboss.arquillian.container.test.api.OperateOnDeployment;
import org.jboss.arquillian.test.api.ArquillianResource;
import org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.net.URL;
/**
* @author mhajas
*/
public class SAMLRedirectSigExample extends AbstractPageWithInjectedUrl {
public static final String DEPLOYMENT_NAME = "saml-redirect-signatures";
@ArquillianResource
@OperateOnDeployment(DEPLOYMENT_NAME)
private URL url;
@FindBy(tagName = "a")
WebElement logoutButton;
@Override
public URL getInjectedUrl() {
return url;
}
public void logout() {
logoutButton.click();
}
}