• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






亚图姆

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2022年6月24日

Javascript+webdriverio实现app自动化demo
摘要: 1.新建工程和安装库 使用WebStorm新建一个空项目然后在编辑器打开终端输入如下命令: npm init -y npm install webdriverio npm install sleep 2.编写代码 代码如下: // javascript const webdriver = requi 阅读全文
posted @ 2022-06-24 14:54 [e^πi+1=0] 阅读(122) 评论(0) 推荐(1)
 
Ruby+Appium+testunit实现app自动化demo
摘要: 1.安装对应库 gem install test-unit gem install appium_lib 2.编写代码 代码如下: require 'appium_lib' require 'test-unit' class EditorTest < Test::Unit::TestCase def 阅读全文
posted @ 2022-06-24 14:48 [e^πi+1=0] 阅读(42) 评论(0) 推荐(1)
 
Ruby+Selenium+testunit web自动化demo
摘要: 1.安装对应库 使用RubyMine新建项目打开终端安装对应库 gem install selenium-webdriver gem install test-unit 如果安装不成功,请切换到国内源 2.编写代码 代码如下: require 'selenium-webdriver' require 阅读全文
posted @ 2022-06-24 14:46 [e^πi+1=0] 阅读(45) 评论(0) 推荐(1)
 
Python+Appium+unittest案例
摘要: 代码如下: # coding=utf-8 import time import unittest from appium import webdriver class MyTestCase(unittest.TestCase): def setUp(self): desired_caps = { " 阅读全文
posted @ 2022-06-24 14:39 [e^πi+1=0] 阅读(83) 评论(0) 推荐(1)
 
Python+Selenium+unittest实例
摘要: 代码如下: # coding=utf-8 import time import unittest from selenium import webdriver class BaiduSearch(unittest.TestCase): def setUp(self): self.driver = w 阅读全文
posted @ 2022-06-24 14:37 [e^πi+1=0] 阅读(97) 评论(0) 推荐(1)
 
Java+Appium+Junit实现app自动化demo
摘要: 1.新建maven工程和引入库 步骤参考https://www.cnblogs.com/wanyuan/p/16408758.html 2.编写代码 代码如下: import org.junit.After; import org.junit.Before; import org.junit.Tes 阅读全文
posted @ 2022-06-24 14:34 [e^πi+1=0] 阅读(123) 评论(0) 推荐(1)
 
Java+Selenium+Junit实现web自动化demo
摘要: 1.新建maven工程 打开IDEA新建maven项目并引入相关依赖,步骤如下: 需要引入的依赖 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</ve 阅读全文
posted @ 2022-06-24 14:28 [e^πi+1=0] 阅读(107) 评论(0) 推荐(1)
 
C#+Appium+Nunit实现app自动化demo
摘要: 1.新建Nunit工程 打开Rider新建一个Nunit工程并使用NuGet安装对应库,步骤如下: 2.编写代码 代码如下: using System; using NUnit.Framework; using OpenQA.Selenium.Remote; using System.Threadi 阅读全文
posted @ 2022-06-24 14:18 [e^πi+1=0] 阅读(247) 评论(0) 推荐(1)
 
C#+Selenium+Nunit实现Web自动化demo
摘要: 1.新建Nunit工程 步骤如下: 打开Rider选择图示选项 使用Nuget安装对应库 2.编写代码 代码如下: using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System.Thr 阅读全文
posted @ 2022-06-24 14:12 [e^πi+1=0] 阅读(110) 评论(0) 推荐(1)