当前位置: 首页 > news >正文

网站 开发逻辑wordpress怎么找回密码

网站 开发逻辑,wordpress怎么找回密码,wordpress怎么放音乐,技术服务外包公司一、启动测试机或者Android模拟器#xff08;Genymotion俗称世界上最快的模拟器#xff0c;可自行百度安装#xff09; 二、启动Appium#xff08;Appium环境安装可自行百度#xff09; 三、安装应用到Genymotion上#xff0c;如下图我安装一个计算机的小应用#xff…一、启动测试机或者Android模拟器Genymotion俗称世界上最快的模拟器可自行百度安装 二、启动AppiumAppium环境安装可自行百度   三、安装应用到Genymotion上如下图我安装一个计算机的小应用包名为CalcTest.apk 安装步骤基于Android SDK已经配置好了环境变量可自行百度 1、Win R 2、CMD 3、adb devices   --检查操作列出存在的设置名称 4、adb  install  F:\Appium\CalcTest.apk     --正式安装App 测试apk下载地址https://files.cnblogs.com/files/yyym/CalcTest.apk 如下图192.168.229.1015555就是我刚开启的Genymotion虚拟机   四、安装成功之后回到Genymotiong可以看到已经安装成功了   打开该应用可以看到实际是个简单的计算器 五、打开Eclipse创建Maven项目并使用uiautomatorviewer工具Android SDK工具包自带的进行基本元素定位操作元素定位方式前面我们已经详细讲解过了。 1、打开Android SDK可找到路径android-sdks\tools如下获取App包名可反编译aapt dump badging apk路径   2、打开uiautomatorviewr.bat 3、编写基本代码如下仅供参考 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 package appium_demo; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import io.appium.java_client.android.AndroidDriver; /** * author 李小卫 E-mail:yyymlxw163.com date 创建时间2018年2月11日上午10:10:02 */ public class calc_demo {     public static void main(String[] args) throws MalformedURLException {         AndroidDriver driver;         DesiredCapabilities des  new DesiredCapabilities();   //    des.setCapability(automationName, Appium);//Selendroid //自动化的模式选择  //     des.setCapability(app, C:\\software\\CalcTest.apk);//配置待测试的apk的路径 //      des.setCapability(browserName, chrome);  //h5         des.setCapability(platformName, Android);//平台名称         des.setCapability(platformVersion, 4.4);//手机操作系统版本         des.setCapability(udid, 192.168.229.101:5555);//连接的物理设备的唯一设备标识         des.setCapability(deviceName, S4);//使用的手机类型或模拟器类型  UDID                   des.setCapability(appPackage, com.sky.jisuanji);//App安装后的包名,注意与原来的CalcTest.apk不一样         des.setCapability(appActivity, .JisuanjizixieActivity);//app测试人员常常要获取activity进行相关测试,后续会讲到                   des.setCapability(unicodeKeyboard, True);//支持中文输入         des.setCapability(resetKeyboard, True);//支持中文输入         des.setCapability(newCommandTimeout, 10);//没有新命令时的超时时间设置         des.setCapability(nosign, True);//跳过检查和对应用进行 debug 签名的步骤                   driver  new AndroidDriver(new URL(http://127.0.0.1:4723/wd/hub), des);//虚拟机默认地址         driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);//设置超时等待时间,默认250ms         driver.findElement(By.id(com.android.calculator2:id/digit1)).click();//定位1         driver.findElement(By.id(com.android.calculator2:id/plus)).click();//定位         driver.findElement(By.id(com.android.calculator2:id/digit6)).click();//定位6         driver.findElement(By.id(com.android.calculator2:id/equal)).click();//定位     } }    六、使用TestNG编写正式测试用例并开始执行测试了 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 package appium_operate; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilities; import org.testng.Assert; import org.testng.annotations.BeforeTest; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import io.appium.java_client.android.AndroidDriver; /** * author 李小卫 E-mail:yyymlxw163.com date 创建时间2018年2月11日上午10:30:02 */ public class CalcTest {     AndroidDriver driver;     BeforeTest     public void setUp() throws MalformedURLException{         DesiredCapabilities des  new DesiredCapabilities(); //      des.setCapability(app, c:\\);         des.setCapability(platformName, Android);         des.setCapability(platformVersion, 4.4);         des.setCapability(udid, 192.168.43.101:5555);         des.setCapability(deviceName, s4);         des.setCapability(appPackage, com.android.calculator2);//com.android.contacts         des.setCapability(appActivity, .Calculator);//.activities.PeopleActivity         des.setCapability(unicodeKeyboard, True);         des.setCapability(resetKeyboard, True);         des.setCapability(newCommandTimeout, 15);         des.setCapability(nosign, True);         driver  new AndroidDriver(new URL(http://127.0.0.1:4723/wd/hub),des);         driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);     }     Test(enabled  false)     public void add() {         driver.findElement(By.xpath(//android.widget.Button[text5])).click();         driver.findElement(By.xpath(//android.widget.Button[text])).click();         driver.findElement(By.xpath(//android.widget.Button[text8])).click();         driver.findElement(By.xpath(//android.widget.Button[text])).click();         String value driver.findElement(By.xpath(//android.widget.EditText[classandroid.widget.EditText])).getAttribute(text);         Assert.assertEquals(value, 13);           }     Test(enabled  false)     public void sub() {         driver.findElement(By.xpath(//android.widget.Button[text1])).click();         driver.findElement(By.xpath(//android.widget.Button[text0])).click();         driver.findElement(By.xpath(//android.widget.Button[text-])).click();         driver.findElement(By.xpath(//android.widget.Button[text8])).click();         driver.findElement(By.xpath(//android.widget.Button[text])).click();         String value driver.findElement(By.xpath(//android.widget.EditText[classandroid.widget.EditText])).getAttribute(text);         Assert.assertEquals(value, 2);            }     Test(enabled  false)     public void mul() {         driver.findElement(By.xpath(//android.widget.Button[text5])).click();         driver.findElement(By.xpath(//android.widget.Button[text×])).click();         driver.findElement(By.xpath(//android.widget.Button[text8])).click();         driver.findElement(By.xpath(//android.widget.Button[text])).click();         String value driver.findElement(By.xpath(//android.widget.EditText[classandroid.widget.EditText])).getAttribute(text);         Assert.assertEquals(value, 40);           }           DataProvider(nametestdata)     public Object[][] getData(){         return new Object[][]{{20,80,100,},{90,3,270,×},{6,2,3,÷}};     }           Test(dataProvider  testdata)     public void calcTestcase(String num1,String num2,String result,String calcType){         for(char num:num1.toCharArray()){             driver.findElement(By.xpath(//android.widget.Button[textString.valueOf(num)])).click();         }         driver.findElement(By.xpath(//android.widget.Button[textcalcType])).click();         for(char num:num2.toCharArray()){             driver.findElement(By.xpath(//android.widget.Button[textString.valueOf(num)])).click();         }         driver.findElement(By.xpath(//android.widget.Button[text])).click();         String value driver.findElement(By.xpath(//android.widget.EditText[classandroid.widget.EditText])).getAttribute(text);         Assert.assertEquals(value, result);         } } 【整整200集】超超超详细的Python接口自动化测试进阶教程合集真实模拟企业项目实战
http://www.w-s-a.com/news/682357/

相关文章:

  • wordpress注册验证码手机网站优化
  • 往建设厅网站上传东西做衣服的教程网站有哪些
  • 网上商城网站设计免费咨询口腔科医生回答在线
  • 南京网站c建设云世家 s浏览器
  • 如何做镜像别人网站wordpress菜单对齐修改
  • 长春网站建设net企业公示信息查询官网
  • 金鹏建设集团网站可在哪些网站做链接
  • 电子产品网站开发背景网站关键词优化方案
  • 建网站论坛wordpress提交数据库错误
  • 国内网站建设公司开源网站系统
  • 网站开发公司上大连网站建设流程图
  • 银川网站seo宁波网
  • 个人备案网站会影响吗网站添加 备案
  • 网站建设与电子商务的教案关于旅游网站建设的方案
  • 电子商务网站建设设计原则找做网站找那个平台做
  • 天津高端品牌网站建设韶关网站建设墨子
  • Wordpress多站点为什么注册不了2008iis搭建网站
  • 天津高端网站制作建网站的公司服务
  • 温州网站推广优化类似淘宝的网站怎么做的
  • 网站建设实训考试什么网站做玩具的比较多
  • 上海网站建设特点怎样给公司做一个网站做推广
  • 流量网站怎么做的济南优化排名公司
  • 保定网站制作套餐设计师导航网站大全
  • 惠州 商城网站建设石家庄新闻广播在线收听
  • 洪山网站建设域名购买之后怎么做网站
  • 北京网站建设公司服务哪家好wap是什么意思?
  • 怎么看公司网站做的好不好哦wordpress页面目录下
  • 做装修业务呢有多少网站平台搭建是什么
  • 潍坊优化网站排名淘宝做网站被骗
  • 建设专业网站的利弊免费logo设计生成器下载