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
import java.io.IOException; | |
import java.net.URL; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.logging.Level; | |
import org.json.*; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.chrome.*; | |
import org.openqa.selenium.logging.*; |
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
[RemoteTestNG] detected TestNG version 6.10.0 | |
[TestNG] Running: | |
/Users/arjun/viocautomation/Mobile/TestNGSuiteFiles/SmokeTest.xml | |
[51] [17/11/10 20:15:41] INFO BaseStep: ------------------initilizing---------------- | |
[522] [17/11/10 20:15:41] INFO configuration.ConfigurationFactory: Trying to load configuration application.properties | |
[43] [17/11/10 20:15:41] INFO SmokeTest: Property File Initialized | |
[70] [17/11/10 20:15:41] INFO SmokeTest: Extended Cucumber Report Setup Done | |
[26] [17/11/10 20:15:41] INFO AppiumServer: Available Port is : 59250 | |
[39] [17/11/10 20:15:45] INFO AppiumServer: Appium Server is starting. |
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
[RemoteTestNG] detected TestNG version 6.10.0 | |
[TestNG] Running: | |
/Users/arjun/viocautomation/Mobile/TestNGSuiteFiles/SmokeTest.xml | |
[51] [17/11/10 21:19:44] INFO BaseStep: ------------------initilizing---------------- | |
[522] [17/11/10 21:19:45] INFO configuration.ConfigurationFactory: Trying to load configuration application.properties | |
[43] [17/11/10 21:19:45] INFO SmokeTest: Property File Initialized | |
[70] [17/11/10 21:19:45] INFO SmokeTest: Extended Cucumber Report Setup Done | |
[26] [17/11/10 21:19:45] INFO AppiumServer: Available Port is : 62328 | |
[39] [17/11/10 21:19:48] INFO AppiumServer: Appium Server is starting. |
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
Verifying that "armate.id" is my Blockstack ID. https://onename.com/armate |
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
package com.test; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.remote.DesiredCapabilities; | |
import org.openqa.selenium.support.events.EventFiringWebDriver; | |
import org.testng.annotations.Test; |
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
Selenium Best Practices, | |
Use PageObjects pattern | |
Be fluent with | |
- return this, varargs, generics, | |
- reuse your model and jodatime | |
Be robust and portable | |
- Prefered selector order : id > name > css > xpath | |
- Avoid Thread.sleep prefer Wait or FluentWait | |
- Use relative URLs |