use of com.coveros.selenified.application.App in project selenified by Coveros.
the class NoBrowserIT method verifyNoBrowser.
@Test(groups = { "integration" }, description = "An integration test to verify we can start a test without a browser")
public void verifyNoBrowser() {
// use this object to manipulate the app
App app = this.apps.get();
// verify no selenium actions class was setup
Assert.assertNull(app);
// verify no issues
finish();
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class POMSampleIT method sampleTest.
@Test(groups = { "sample", "pom" }, description = "A sample test using a data provider to perform searches")
public void sampleTest() {
// grab our main app object
App app = this.apps.get();
// grab our main threadsafe object for future use
MainPage main = this.main.get();
// our test actions
main.generateAlert();
app.acceptAlert();
app.azzert().alertNotPresent();
// close out the test
finish();
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class AssertEqualsIT method negativeCompareSelectedTextNotEnabledTest.
@Test(groups = { "integration", "asserts", "equals" }, description = "An integration negative test to check the compareSelectedText method")
public void negativeCompareSelectedTextNotEnabledTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.newElement(Locator.ID, "alert_button").assertEquals().selectedOption("wrong value");
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class AssertEqualsIT method compareInputValueTest.
@Test(groups = { "integration", "asserts", "equals" }, description = "An integration test to check the compareCssValue method")
public void compareInputValueTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.newElement(Locator.ID, "that").assertEquals().value("That");
// verify no issues
finish();
}
use of com.coveros.selenified.application.App in project selenified by Coveros.
the class AssertEqualsIT method negativeCompareTextValueNotPresentTest.
@Test(groups = { "integration", "asserts", "equals" }, description = "An integration negative test to check the compareTextValue method")
public void negativeCompareTextValueNotPresentTest() {
// use this object to manipulate the app
App app = this.apps.get();
// perform some actions
app.newElement(Locator.ID, "non-existent-element").assertEquals().text("Maria Anders");
// verify 1 issue
finish(1);
}
Aggregations