-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* small corrections * swithc all parallel classes to methods * move Soft asserts to single thread tests * move Soft asserts to single thread tests * another ci run * another ci run * set retry to 2 ans switch on nextMethodTest * move SoftAsserts back to parallel execution * correct validateLocators for Grid * fix actions issue while close driver * add show for actions
- Loading branch information
1 parent
d594e3c
commit 20a60bf
Showing
37 changed files
with
159 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...ght-html-tests/src/test/java/io/github/epam/html/tests/performance/ActionsCloseTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package io.github.epam.html.tests.performance; | ||
|
||
import com.epam.jdi.light.driver.WebDriverFactory; | ||
import com.epam.jdi.tools.Timer; | ||
import io.github.epam.TestsInit; | ||
import org.openqa.selenium.Keys; | ||
import org.testng.annotations.AfterMethod; | ||
import org.testng.annotations.BeforeMethod; | ||
import org.testng.annotations.Test; | ||
|
||
import static io.github.com.StaticSite.html5Page; | ||
import static io.github.com.pages.HtmlElementsPage.yourName; | ||
import static io.github.epam.html.tests.site.steps.States.shouldBeLoggedIn; | ||
import static org.testng.Assert.assertEquals; | ||
|
||
/** | ||
* Created by Roman Iovlev on 01.03.2019 | ||
* Email: [email protected]; Skype: roman.iovlev | ||
*/ | ||
|
||
public class ActionsCloseTests implements TestsInit { | ||
|
||
@BeforeMethod | ||
public void before() { | ||
shouldBeLoggedIn(); | ||
html5Page.shouldBeOpened(); | ||
yourName.setText(text); | ||
} | ||
String text = "TextField"; | ||
|
||
@Test | ||
public void getValueTest() { | ||
yourName.core().actionsWithElement(a -> a. | ||
click(). | ||
keyDown(Keys.CONTROL). | ||
sendKeys("a"). | ||
keyUp(Keys.CONTROL)); | ||
yourName.sendKeys("Test"); | ||
assertEquals(yourName.getValue(), "Test"); | ||
} | ||
|
||
@Test | ||
public void sendKeysTest() { | ||
yourName.core().actionsWithElement(a -> a. | ||
click(). | ||
keyDown(Keys.CONTROL). | ||
sendKeys("a"). | ||
keyUp(Keys.CONTROL)); | ||
yourName.sendKeys("Test"); | ||
assertEquals(yourName.getValue(), "Test"); | ||
} | ||
@AfterMethod(alwaysRun = true) | ||
public void tearDown() { | ||
WebDriverFactory.close(); | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...tml/tests/issues/issue67/SoftAsserts.java → ...hub/epam/html/tests/site/SoftAsserts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
arguments=--headless | ||
# arguments=--headless |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.