Skip to content

Commit 1f7a95a

Browse files
author
Mike Reiche
committed
Merge fixes from master
1 parent af88d62 commit 1f7a95a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/test/reporting/ScreenshotsTest.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@
2121

2222
package eu.tsystems.mms.tic.testframework.test.reporting;
2323

24-
import eu.tsystems.mms.tic.testframework.AbstractTestSitesTest;
24+
import eu.tsystems.mms.tic.testframework.AbstractExclusiveTestSitesTest;
2525
import eu.tsystems.mms.tic.testframework.annotations.Fails;
2626
import eu.tsystems.mms.tic.testframework.common.Testerra;
27-
import eu.tsystems.mms.tic.testframework.core.pageobjects.testdata.BasePage;
2827
import eu.tsystems.mms.tic.testframework.core.pageobjects.testdata.WebTestPage;
29-
import eu.tsystems.mms.tic.testframework.execution.testng.AssertCollector;
3028
import eu.tsystems.mms.tic.testframework.pageobjects.UiElement;
31-
import eu.tsystems.mms.tic.testframework.report.Report;
3229
import eu.tsystems.mms.tic.testframework.report.model.context.MethodContext;
3330
import eu.tsystems.mms.tic.testframework.report.model.context.Screenshot;
3431
import eu.tsystems.mms.tic.testframework.report.utils.ExecutionContextController;
@@ -40,19 +37,18 @@
4037
import java.util.Optional;
4138
import org.openqa.selenium.By;
4239
import org.testng.Assert;
43-
import org.testng.annotations.AfterMethod;
4440
import org.testng.annotations.Test;
4541
import org.testng.reporters.Files;
4642

4743
/**
4844
* Tests if screenshots are added to the MethodContext when a test fails.
4945
* @author Mike Reiche
5046
*/
51-
public class ScreenshotsTest extends AbstractTestSitesTest implements PageFactoryTest, AssertProvider {
47+
public class ScreenshotsTest extends AbstractExclusiveTestSitesTest<WebTestPage> implements PageFactoryTest, AssertProvider {
5248

5349
@Override
54-
public BasePage getPage() {
55-
return PAGE_FACTORY.createPage(BasePage.class, WEB_DRIVER_MANAGER.getWebDriver());
50+
public Class<WebTestPage> getPageClass() {
51+
return WebTestPage.class;
5652
}
5753

5854
// @Test()
@@ -117,7 +113,7 @@ public void test_Screenshot_is_present_in_MethodContext_on_collected_assertion()
117113

118114
@Test
119115
public void test_DOMSource() throws IOException {
120-
WebTestPage page = new WebTestPage(WebDriverManager.getWebDriver());
116+
WebTestPage page = getPage();
121117

122118
for (int s = 0; s < 3; ++s) {
123119
page.getOpenAgain().click();

integration-tests/src/test/resources/MethodParallel.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<packages>
66
<package name="eu.tsystems.mms.tic.testframework.test.common"/>
77
<package name="eu.tsystems.mms.tic.testframework.test.events"/>
8-
<package name="eu.tsystems.mms.tic.testframework.test.l10n"/>
98
<package name="eu.tsystems.mms.tic.testframework.test.reporting"/>
109
<package name="eu.tsystems.mms.tic.testframework.test.testdata"/>
1110
<package name="eu.tsystems.mms.tic.testframework.test.utils"/>

0 commit comments

Comments
 (0)