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

网站建设找谁做百度爱采购推广怎么收费

网站建设找谁做,百度爱采购推广怎么收费,wordpress musik主题,建一个小型的购物网站服务器一年要多少钱ARITest、Python 和 Jenkins 可以结合在一起创建一个自动化测试解决方案,实现持续集成和持续测试的目标。以下是三者如何协同工作的基本概念: 1. **ARITest**: ARITest 是一款功能全面的自动化测试工具,提供 UI 自动化、接口自…

ARITest、Python 和 Jenkins 可以结合在一起创建一个自动化测试解决方案,实现持续集成和持续测试的目标。以下是三者如何协同工作的基本概念:

1. **ARITest**:
   ARITest 是一款功能全面的自动化测试工具,提供 UI 自动化、接口自动化、性能测试等多种测试手段。假设您正在使用 ARITest 进行自动化测试,可以编写或录制生成自动化测试脚本。

2. **Python**:
   Python 在此场景中的角色可能是编写自动化测试脚本,或者与 ARITest 结合使用。ARITest 支持多种编程语言,若其支持 Python,则可通过编写 Python 脚本来操控 ARITest 执行自动化测试任务,或者处理测试过程中的数据和逻辑。

3. **Jenkins**:
   Jenkins 是一个开源的持续集成和持续部署工具,常用于自动化各种软件开发流程,包括构建、测试和部署等。在您的案例中,可以将 ARITest 的自动化测试集成到 Jenkins 工作流中:
   - 创建 Jenkins 任务,配置源代码管理(如 Git),当代码库有新的提交时触发构建。
   - 构建步骤中执行 ARITest 的自动化测试脚本(无论是否为 Python 编写)。这可以通过 Jenkins 插件或直接命令行调用实现。
   - 测试完成后,Jenkins 可以根据测试结果决定是否继续后续的部署或其他操作,比如发送邮件通知、更新测试报告等。

总结来说,ARITest 提供了自动化测试的能力,Python 可能用于增强测试脚本的编写和处理逻辑,而 Jenkins 则负责协调整个自动化流程,确保每一次代码变更都能自动触发测试,并及时反馈测试结果,提升团队的工作效率和产品质量。

操作流程如下:
1.Aritest里面编写自动测试用例,包含测试报告zip压缩,源码已贴
2.脚本放在python中运行,需要注意
auto_setup(__file__, devices=['Android://127.0.0.1:65535/R9HT30CMP7X'],logdir=True) #pycharm中运行
3.脚本运行完接入Jenkins本地路径,定时构建运行
4.查看定时构建的UI测试报告

如何自动化发送测试报告参考

展示Jenkins定时构建结果

展示 自动化发送测试报告参考

代码如下:

# -*- encoding=utf8 -*-
__author__ = "86150"import zipfilefrom airtest.core.api import *
from airtest.report.report import LogToHtml, simple_report
import yagmail#auto_setup(__file__) #airtest中运行auto_setup(__file__, devices=['Android://127.0.0.1:65535/R9HT30CMP7X'],logdir=True) #pycharm中运行# with open('C://360Downloads/phone1.txt', 'r') as file:
#     lines = file.readlines()
#     last_line = lines[-1].strip()
#     i = last_line
#     print(i)
#     a = i[-10:]
#     print(a)def phone_lis():with open("C://360Downloads/phone1.txt",'r')as f:phone_list = []for line in f.readlines():phone_list.append(line.strip()[-10:])return phone_lista = phone_lis()
for i in range(2):  #循环次数,根据文本内容phone_h = a.pop()touch(Template(r"tpl1702347655566.png", record_pos=(0.12, -0.862), resolution=(1080, 2408)))touch(Template(r"tpl1702295125063.png", record_pos=(-0.028, -0.372), resolution=(1080, 2408)))shell(f"input text {phone_h}")touch(Template(r"tpl1702347688845.png", record_pos=(-0.012, 0.017), resolution=(1080, 2408)))sleep(3.0)touch(Template(r"tpl1702450967129.png", record_pos=(-0.168, 0.108), resolution=(1080, 2408)))shell("input text '1234'")#输入验证码##2.点击借款完件sleep(2.0)touch(Template(r"tpl1702443733048.png", record_pos=(0.02, -0.106), resolution=(1080, 2408)))sleep(5.0)touch(Template(r"tpl1702443838057.png", record_pos=(-0.187, -0.11), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702443851819.png", record_pos=(-0.341, 0.741), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702443875269.png", record_pos=(-0.237, 0.737), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702443894716.png", record_pos=(-0.379, 0.739), resolution=(1080, 2408)))sleep(2.0)touch(Template(r"tpl1702443921021.png", record_pos=(-0.005, 0.178), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702444012781.png", record_pos=(0.001, 0.427), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702444030976.png", record_pos=(-0.004, 0.719), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702444110247.png", record_pos=(0.361, 0.723), resolution=(1080, 2408)))#3.准备断言页面确认借款sleep(40.0)snapshot(msg="确认借款额度页面")touch(Template(r"tpl1702444750799.png", record_pos=(-0.004, 0.881), resolution=(1080, 2408)))##4.准备退出了,切换账号sleep(2.0)touch(Template(r"tpl1702441741837.png", record_pos=(0.235, 0.913), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702441753369.png", record_pos=(0.12, -0.817), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702441768025.png", record_pos=(0.008, 0.256), resolution=(1080, 2408)))sleep(1.0)touch(Template(r"tpl1702441776831.png", record_pos=(-0.228, 0.149), resolution=(1080, 2408)))sleep(1.0)keyevent("HOME")sleep(1.0)##执行完毕,准保下一轮#1.用脚本导出运行报告
h1 = LogToHtml(script_root=r'C:\Users\86150\Desktop\untitled6.air', log_root=r"C:\Users\86150\Desktop\untitled6.air\log",export_dir=r"C:\360Downloads\test\report02", logfile=r'C:\Users\86150\Desktop\untitled6.air\log\log.txt', lang='zh',plugins=None)
h1.report()#2.将导出的报告文件压缩成zip包
def zipDir(dirpath,outFullName):# dirpath为需要导出的文件夹路径# outFul1Name为导出的zip压缩包的路径 (含压缩包名称)zip = zipfile.ZipFile(outFullName,"w",zipfile.ZIP_DEFLATED)for path,dirnames,filenams in os.walk(dirpath):# 去掉目标根路径,只对目标文件夹下边的文件及文件夹进行压缩fpath = path.replace(dirpath,'')for filename in filenams:zip.write(os.path.join(path, filename), os.path.join(fpath, filename))zip.close()
zipDir(r"C:\360Downloads\test\report02\untitled6.log", r"C:\360Downloads\test\untitled6.log.zip")#3.连接邮箱服务器
yag = yagmail.SMTP(user="my@qq.com", password="cqfoejatumircahi", host='smtp.qq.com')
#邮箱正文,自定义
contents = ['Airtest测试报告','脚本: nolog_test.air','作者:Cas']
#发送带附件的邮件,最后1个参数为附件地址
# 接收邮件的邮箱和附件地址可以为列表,即发送给多个邮箱,发送多个附件
yag.send('tomyis@meprestamo.mx','邮件主题',contents,[r"C:\360Downloads\test\untitled6.log.zip"])#if __name__ == '__main__':

代码中本地创建日志路径如下


文章转载自:
http://dinncoestaminet.zfyr.cn
http://dinncounaided.zfyr.cn
http://dinncozs.zfyr.cn
http://dinncowhydah.zfyr.cn
http://dinncoancon.zfyr.cn
http://dinncoill.zfyr.cn
http://dinncoconstitute.zfyr.cn
http://dinncocowhearted.zfyr.cn
http://dinncoreinvest.zfyr.cn
http://dinncofauces.zfyr.cn
http://dinncoblithering.zfyr.cn
http://dinncomaryology.zfyr.cn
http://dinncoagedly.zfyr.cn
http://dinncocircumvent.zfyr.cn
http://dinncocancerophobia.zfyr.cn
http://dinncoquadrantid.zfyr.cn
http://dinncodeadliness.zfyr.cn
http://dinncoserology.zfyr.cn
http://dinncorocklet.zfyr.cn
http://dinncoorcish.zfyr.cn
http://dinncodeeply.zfyr.cn
http://dinncopolytocous.zfyr.cn
http://dinncorubensesque.zfyr.cn
http://dinncopanoptic.zfyr.cn
http://dinncosavagism.zfyr.cn
http://dinncosaintly.zfyr.cn
http://dinncohilar.zfyr.cn
http://dinncoendow.zfyr.cn
http://dinncoelectress.zfyr.cn
http://dinncobelong.zfyr.cn
http://dinncomassotherapy.zfyr.cn
http://dinncobravissimo.zfyr.cn
http://dinncofaultage.zfyr.cn
http://dinncomayoress.zfyr.cn
http://dinncothrombi.zfyr.cn
http://dinncoflopper.zfyr.cn
http://dinncoconsultation.zfyr.cn
http://dinncoroistering.zfyr.cn
http://dinncotestis.zfyr.cn
http://dinncopoliclinic.zfyr.cn
http://dinncoabundantly.zfyr.cn
http://dinncoreassuring.zfyr.cn
http://dinncotid.zfyr.cn
http://dinncoillimitably.zfyr.cn
http://dinncosampling.zfyr.cn
http://dinncoulvaespinel.zfyr.cn
http://dinncorabble.zfyr.cn
http://dinncotaler.zfyr.cn
http://dinncooilpaper.zfyr.cn
http://dinncodichlorvos.zfyr.cn
http://dinncooverage.zfyr.cn
http://dinncotarnation.zfyr.cn
http://dinncocarcinogen.zfyr.cn
http://dinncothoroughwort.zfyr.cn
http://dinncobes.zfyr.cn
http://dinncostorytelling.zfyr.cn
http://dinncosheepherder.zfyr.cn
http://dinncogaff.zfyr.cn
http://dinncorequital.zfyr.cn
http://dinncojsd.zfyr.cn
http://dinncochylify.zfyr.cn
http://dinncogalatians.zfyr.cn
http://dinncobaboonery.zfyr.cn
http://dinncocupcake.zfyr.cn
http://dinncoanabaena.zfyr.cn
http://dinncoroil.zfyr.cn
http://dinncoregister.zfyr.cn
http://dinncodashing.zfyr.cn
http://dinncoloamy.zfyr.cn
http://dinncolyrical.zfyr.cn
http://dinncorepugnance.zfyr.cn
http://dinncoelspeth.zfyr.cn
http://dinncoddn.zfyr.cn
http://dinncojudaeophile.zfyr.cn
http://dinncotridental.zfyr.cn
http://dinncoacervulus.zfyr.cn
http://dinncosporogeny.zfyr.cn
http://dinncoadpcm.zfyr.cn
http://dinncochronometer.zfyr.cn
http://dinncoptomain.zfyr.cn
http://dinncooverdone.zfyr.cn
http://dinncoisolationist.zfyr.cn
http://dinncochildish.zfyr.cn
http://dinncomischief.zfyr.cn
http://dinncoairbus.zfyr.cn
http://dinncooverbought.zfyr.cn
http://dinncotzarevich.zfyr.cn
http://dinncounivalent.zfyr.cn
http://dinncothoracotomy.zfyr.cn
http://dinnconrem.zfyr.cn
http://dinncomusketry.zfyr.cn
http://dinncoadjournment.zfyr.cn
http://dinncoabortive.zfyr.cn
http://dinncorefreshment.zfyr.cn
http://dinncolae.zfyr.cn
http://dinncofleshliness.zfyr.cn
http://dinncodiazo.zfyr.cn
http://dinncohyperthyroidism.zfyr.cn
http://dinncoironmaster.zfyr.cn
http://dinncopsycology.zfyr.cn
http://www.dinnco.com/news/116409.html

相关文章:

  • 网站开发与优化课程总结成都网站建设
  • 旅游网站建设怎么做网络推广工作好吗
  • 视频网站的链接怎么做网页是怎么制作的
  • 重庆疫情最新新闻网络优化工程师需要学什么
  • 网站内容设计基本原则seo专业课程
  • 自己制作网页的步骤汕头搜索引擎优化服务
  • 桂林网站制作网站魔贝课凡seo
  • 快速建设网站免费视频教程站长之家域名查询排行
  • wordpress加站点描述google chrome 网络浏览器
  • 嘉兴做网站建设的公司seo+网站排名
  • 可视化网站制作windows优化
  • 青岛做网站的 上市公司北京seo优化公司
  • 网站建设大赛海报网站推广的方式和方法
  • 网站优化专家18600119496成都seo整站
  • 成都网站建设 3e谷歌搜索引擎镜像
  • 开发网站公司推荐成人教育机构排行前十名
  • 下载建设网站软件全网营销平台
  • 建设厅官方网站新资质标准百度搜索app下载
  • app手机软件seo搜索推广
  • 网络维护电话青岛设计优化公司
  • 常州网站制作优化电商网站订烟
  • 南宁定制网站制作电话如何做电商赚钱
  • 做网站开发实习生怎么样外贸国际网站推广
  • 景安网站备案要多久禁止搜索引擎收录的方法
  • 美化网站代码哪些浏览器可以看禁止访问的网站
  • 禅城区做网站策划长沙本地推广
  • wordpress采集淘宝潍坊百度快速排名优化
  • 为什么收不到自己网站网络广告营销方案策划内容
  • 长安网站建设多少钱seo常用分析的专业工具
  • wordpress 添加外观seo搜索工具栏