http://www.mkyong.com/unittest/testng-tutorial-6-parameterized-test/
brew update
brew install maven
Maven Eclipse plugin installation step by step
For MacOs users
Download chromedriver_mac32.zip 2015-06-08 13:29:32 3.34MB
Edit codes in **/seleniumtests/src/test/java/au/com/vclass/init/InitAndFunction.java
public final String web = "http://192.168.1.25/wwork7_/WebApp/web/cviewer5.html";
public final String chromeDriverPath = "/Users/zhengyu/Documents/JavaJar/chromedriver";
Edit files under **/seleniumtests/src/test/java/au/com/vclass/automationtests
to change test scope
Here's an idea: why don't we take SuperiorProject
and turn it into **Reasonable**Project
.
Navigate to project folder and run mvn clean test
Report files are under the project folder with the name CombineTest*.html
- mvn test
- mvn mvn -Dtest=TestCircle test
- mvn mvn -Dtest=TestCircle#xyz test
Run All the tests
Specify a test class(Change TestCircle to the class name, for example, CombineTest.java, just use CombineTest) to run
Run a specified test method in a class. Change xyz to the method name
Description | command para | ClassName/MethodName |
---|---|---|
ToolBar Test | CombineTest | ClassName |
SignIn/Off Test | SignInTest | ClassName |
Pen thickness Test | CombineTest#penThickness | MethodName |
Pen color Test | CombineTest#penColor | MethodName |
Page Navigation Test | CombineTest#pageNavigation | MethodName |
Zoom and Scale Test | CombineTest#zoomAndScale | MethodName |
Signin with valid info Test | SignInTest#signInWithValidInfo | MethodName |
Signin witn invalid info Test | SignInTest#signInWithInvalidInfo | MethodName |