Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试(2)
2016-05-31 10:39
561 查看
全局变量配置:Web端
public final class Consts {
/**
* <b>Name:</b> Consts</br>
* <b>Description:</b> This is a constant class includes the following:<br>
* 1.General constants.<br>
* 2.Browsers constants.<br>
* 3.Constants parameters for run a test<br>
* @author <i>Ron Zhang</i>
*/
private Consts() {
throw new AssertionError("This is a constant class.");
}
// *********************************************
// General constants
// *********************************************
public static final String PAGETOLOAD = "20000000";
public static final String PAGETOLOAD_MAX = "9000000";
// *******************************
// Titles,messages,link's name and texts
// *******************************
public static final String LEFT_SQ_BRACKET = "]";
public static final String RIGHT_SQ_BRACKET = "[";
public static final String LEFT_SQ_BRACKET_WITH_QUOTES = "']";
// *****************************************
// Browsers constants
// *****************************************
public static final String IE = "*iexplore";
public static final String IEPROCESS = "iexplore.exe";
public static final String IEDRIVERP = "IEDriverServer.exe";
public static final String FF = "*firefox";
public static final String FFPROCESS = "firefox.exe";
public static final String SF = "*safari";
public static final String CR = "*googlechrome";
public static final String CRPROCESS = "chrome.exe";
public static final String CRDRIVERP = "chromedriver.exe";
// *****************************************
// Constants for run a test (it should be in a data and config)
// *****************************************
/** Definition of the browser type */
public static final String startBrowser = CR;
public static final String FF_PROFILE_PATH = "C:/SeleniumProfile";
// public static final String FF_PROFILE_PATH = "./TestData";
public static final String LIB_PATH = "./lib";
// *****************************************
// Constants of the pages URL
// *****************************************
/** URL of the http://www.zennioptical.com/ */
public static final String URL_ZENNIE_SITE = "http://www.zennioptical.com";
public static final String URL_ZENNIE_PASSWORD="https://www.zennioptical.com/forgotPwd";
public static final String TEST_DATA_FILE = "TestCase_Data";
public final class Consts {
/**
* <b>Name:</b> Consts</br>
* <b>Description:</b> This is a constant class includes the following:<br>
* 1.General constants.<br>
* 2.Browsers constants.<br>
* 3.Constants parameters for run a test<br>
* @author <i>Ron Zhang</i>
*/
private Consts() {
throw new AssertionError("This is a constant class.");
}
// *********************************************
// General constants
// *********************************************
public static final String PAGETOLOAD = "20000000";
public static final String PAGETOLOAD_MAX = "9000000";
// *******************************
// Titles,messages,link's name and texts
// *******************************
public static final String LEFT_SQ_BRACKET = "]";
public static final String RIGHT_SQ_BRACKET = "[";
public static final String LEFT_SQ_BRACKET_WITH_QUOTES = "']";
// *****************************************
// Browsers constants
// *****************************************
public static final String IE = "*iexplore";
public static final String IEPROCESS = "iexplore.exe";
public static final String IEDRIVERP = "IEDriverServer.exe";
public static final String FF = "*firefox";
public static final String FFPROCESS = "firefox.exe";
public static final String SF = "*safari";
public static final String CR = "*googlechrome";
public static final String CRPROCESS = "chrome.exe";
public static final String CRDRIVERP = "chromedriver.exe";
// *****************************************
// Constants for run a test (it should be in a data and config)
// *****************************************
/** Definition of the browser type */
public static final String startBrowser = CR;
public static final String FF_PROFILE_PATH = "C:/SeleniumProfile";
// public static final String FF_PROFILE_PATH = "./TestData";
public static final String LIB_PATH = "./lib";
// *****************************************
// Constants of the pages URL
// *****************************************
/** URL of the http://www.zennioptical.com/ */
public static final String URL_ZENNIE_SITE = "http://www.zennioptical.com";
public static final String URL_ZENNIE_PASSWORD="https://www.zennioptical.com/forgotPwd";
public static final String TEST_DATA_FILE = "TestCase_Data";
相关文章推荐
- IOS懒加载
- Arcgis for Android---图层控制
- Unity中文API,视频转换器(将任何格式的视频转换为.OGV格式)
- Android全屏下输入法软键盘遇到的问题
- android图片压缩上传系列-service篇
- iOS顶部滑动菜单:FDSlideBar 与NinaPagerView
- 清理 iOS 项目不用的图片资源
- android 应用重启 关闭
- Android获取view高度的三种方式
- 安卓:调用startActivityForResult后,onActivityResult立刻回调
- ios ShareSDK点击微信分享没反应
- IOS利用 AFNetWorking 解析网址出现问题的解决方法
- iOS开发系列—Objective-C之内存管理
- 关于 Android 进程保活,你所需要知道的一切
- 在Mac pro上如何将Android SDK的adb命令添加到环境变量中,这里将进行说明!
- iOS学习应用开发就业课_002:Label学习
- Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试
- android图片压缩上传系列-service篇
- Service的简单使用
- Xcode打包的时候报此证书的签发者无效Missing iOS Distribution signing identity问题解决