中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

python數(shù)據(jù)分析做網(wǎng)站百度總部投訴電話

python數(shù)據(jù)分析做網(wǎng)站,百度總部投訴電話,2昌平區(qū)網(wǎng)站建設(shè),網(wǎng)站源碼有什么用-mini https://github.com/zx490336534/pytest-mini 微信小程序自動化測試pytest插件/工具 基于MiniTest進(jìn)行pytest改造 使用方法 準(zhǔn)備測試小程序 根據(jù)miniprogram-demo項目介紹運行一次項目 成功運行后關(guān)閉 安裝&更新 pip install pytest-mini --upgrade引入插件…


-mini

https://github.com/zx490336534/pytest-mini

微信小程序自動化測試pytest插件/工具

基于MiniTest進(jìn)行pytest改造

使用方法

準(zhǔn)備測試小程序

根據(jù)miniprogram-demo項目介紹運行一次項目

成功運行后關(guān)閉

安裝&更新

pip install pytest-mini --upgrade

引入插件

新建conftest.py文件

from pytest_mini import pluginspytest_plugins = plugins("待測試的小程序項目路徑","微信開發(fā)者工具路徑"
)

例如demo/cases/conftest.py

from pytest_mini import pluginspytest_plugins = plugins("/Users/zhongxin/github/miniprogram-demo",  # 待測試的小程序項目路徑"/Applications/wechatwebdevtools.app/Contents/MacOS/cli"  # 微信開發(fā)者工具路徑
)

編寫頁面對象

在demo/pages/components_page.py編寫元素定位

from pytest_mini import Mini, Locatorclass ComponentsPage(Mini):view_container = Locator('view', inner_text='視圖容器', desc='組件頁-視圖容器')

在conftest.py中添加

import pytest
from pages.components_page import ComponentsPage@pytest.fixture(scope="session")
def components_page(mini):yield ComponentsPage(driver=mini.driver)

編寫測試代碼

demo/cases/test_home.py

import allurefrom pytest_mini import compose@compose(feature="小程序官方組件展示", story="組件", title='容器視圖操作')
def test_view_container(components_page):with allure.step("點擊容器視圖"):components_page.click(components_page.view_container)assert False, "故意失敗,查看報告截圖"

編寫執(zhí)行&報告展示腳本

demo/cases/allure_debug.py

import os
import pytest
from pytest_mini.constant import Constanttest_cases = ["test_home.py"]  # 執(zhí)行的腳本main_list = ['-s', '-v',*test_cases,'--durations=0', '--clean-alluredir','--alluredir', f'{Constant().REPORT_PATH}/allure_results'
]
pytest.main(main_list)
if not os.getenv("BUILD_URL"):os.system(f"{Constant.ALLURE_TOOL} serve {Constant().REPORT_PATH}/allure_results")  # 本地執(zhí)行

執(zhí)行測試

運行allure_debug.py文件

查看報告

圖片

報告截圖

最后感謝每一個認(rèn)真閱讀我文章的人,禮尚往來總是要有的,雖然不是什么很值錢的東西,如果你用得到的話可以直接拿走:

在這里插入圖片描述

這些資料,對于【軟件測試】的朋友來說應(yīng)該是最全面最完整的備戰(zhàn)倉庫,這個倉庫也陪伴上萬個測試工程師們走過最艱難的路程,希望也能幫助到你!???

http://www.risenshineclean.com/news/1246.html

相關(guān)文章:

  • 網(wǎng)站內(nèi)部鏈接有什么作用有什么平臺可以發(fā)廣告
  • 邢臺建網(wǎng)站找誰指數(shù)型基金
  • 深圳最新疫情防控信息亻seo關(guān)鍵詞優(yōu)化軟件
  • 如何做收機(jī)微網(wǎng)站seo排名優(yōu)化推廣報價
  • 做公司+網(wǎng)站建設(shè)價格低谷歌賬號注冊
  • 網(wǎng)易云外鏈wordpressseo服務(wù)商
  • 新手做市場分析的網(wǎng)站抖音信息流廣告怎么投放
  • 不用淘寶客api如何做網(wǎng)站網(wǎng)站制作 網(wǎng)站建設(shè)
  • 銀川做企業(yè)網(wǎng)站合肥seo報價
  • 重慶網(wǎng)站建設(shè)設(shè)計網(wǎng)絡(luò)營銷十大成功案例
  • 娛樂網(wǎng)站開發(fā)福州外包seo公司
  • 榮耀手機(jī)商城官方網(wǎng)站入口西安seo排名外包
  • 蘇州網(wǎng)站建設(shè)的一般流程職業(yè)技能培訓(xùn)網(wǎng)
  • 哪家做網(wǎng)站靠譜企業(yè)營銷策劃
  • 福清網(wǎng)站建設(shè)百度收錄批量提交入口
  • 海門做網(wǎng)站自動優(yōu)化句子的軟件
  • 數(shù)據(jù)分析師簡歷襄陽網(wǎng)站推廣優(yōu)化技巧
  • 北京住房城鄉(xiāng)建設(shè)部網(wǎng)站八大員千萬不要去電商公司上班
  • 可以在哪些網(wǎng)站做翻譯兼職建立企業(yè)網(wǎng)站步驟
  • 天津平臺網(wǎng)站建設(shè)推薦廣告營銷平臺
  • 成都旅游景點攻略自由行攻略關(guān)鍵詞優(yōu)化seo公司
  • 西安微網(wǎng)站建設(shè)百度一下 你就知道官網(wǎng)
  • 網(wǎng)站開發(fā)需要考什么證網(wǎng)絡(luò)營銷渠道有哪三類
  • 南陽做網(wǎng)站的公怎樣進(jìn)行網(wǎng)絡(luò)營銷吸引顧客
  • 商標(biāo)被注冊了做網(wǎng)站國外網(wǎng)站推廣公司
  • 建筑工程外架安全網(wǎng)西安的網(wǎng)絡(luò)優(yōu)化公司
  • 做算法題的 網(wǎng)站成品網(wǎng)站貨源1
  • 網(wǎng)站建設(shè)策劃實訓(xùn)總結(jié)友情鏈接怎么連
  • 遵義新藍(lán)外國語學(xué)校網(wǎng)站建設(shè)臺州seo優(yōu)化
  • 郴州北湖區(qū)疫情最新消息網(wǎng)站優(yōu)化