Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试(2)
来源:互联网 发布:淘宝外卖粮票领取 编辑:程序博客网 时间:2024/05/18 03:34
全局变量配置: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";
- Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试(2)
- Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试
- Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试(3)
- Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试(4)
- Selenium+TestNG Web自动化测试环境搭建1_前言
- Selenium+TestNG Web自动化测试环境搭建3_xpath学习
- selenium+testNG-自动化测试环境的搭建
- selenium+testNG-自动化测试环境的搭建
- Selenium+TestNG Web自动化测试环境搭建9_ANT自动化执行以及testNG报告优化
- Selenium+TestNG Web自动化测试环境搭建2_软件安装
- 自动化测试框架selenium+java+TestNG——TestNG详解
- Selenium终极自动化测试环境搭建:Selenium+Eclipse+Junit+TestNG
- Selenium2测试—Selenium+Testng测试环境搭建
- Selenium+TestNG Web自动化测试环境搭建4_一个简单的例子
- Selenium+TestNG Web自动化测试环境搭建5_高亮对象
- Selenium+TestNG Web自动化测试环境搭建6_selenium中的等待
- Selenium+TestNG Web自动化测试环境搭建7_截取屏幕
- Selenium+TestNG Web自动化测试环境搭建8_处理一些不常见的场景
- Unity中文API,视频转换器(将任何格式的视频转换为.OGV格式)
- android图片压缩上传系列-service篇
- Linux进程管理之task_struct结构体
- Arcgis for Android---图层控制
- 我爱android studio
- Selenium+Java+Appium+TestNg环境搭建——Web自动化测试与HTML5测试(2)
- 可动态显示圆形图像或圆形文字的AvatarImageView
- PHP并发IO编程之路
- 数字证书引入的原因 CA机构 授权认证中心
- 不是不努力,只是习惯找借口
- opencv 固定位置颜色识别
- 学会阅读Java字节码
- dbms_scheduler
- 横向条形统计图