Skip to content

Instantly share code, notes, and snippets.

View arjunbm13's full-sized avatar

armate arjunbm13

View GitHub Profile
@arjunbm13
arjunbm13 / Test.java
Created March 27, 2019 15:47 — forked from klepikov/Test.java
Demo code for the GTAC 2013 talk "Web Performance Testing with WebDriver" by Michael Klepikov
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.*;
@arjunbm13
arjunbm13 / Appium Log
Created February 27, 2018 16:30
Appium Log
[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.
@arjunbm13
arjunbm13 / Appium log
Created November 10, 2017 15:57
Appium log
[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.
Verifying that "armate.id" is my Blockstack ID. https://onename.com/armate
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;
@arjunbm13
arjunbm13 / Selenium Best Practices
Created March 26, 2015 13:41
Selenium Best Practices to be followed
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