Skip to content

Releases: ctripcorp/flybirds

v0.5.7

23 May 05:23
Compare
Choose a tag to compare

Features

  1. [Android] 支持新版airtest ffmpeg录屏模式, 如需使用,在flybirds_config.json的frame_info中添加配置:"airtestRecordMode": "ffmpeg",支持ffmpeg和yosemite两种模式
  2. [web] 支持切换浏览器tab:切换目标页面标题[{title}]链接[{url}]
  3. [web] 支持执行js:执行js[{param}]
  4. [web] 支持xml request对比:验证服务请求[{service}]与xml路径[{target_data_xml_path}]一致
  5. [web] 支持dom元素文本对比:对比目标元素的链接[{target_url}]与文本内容[{target_ele}]和比较元素的链接[{compared_url}]与文本匹配内容[{compared_ele}]
  6. [web] 支持图像对比:对比目标图片[{target_picture_path}]和比较图片[{compared_picture_path}]
  7. [web] 支持hover操作:悬浮[{selector}]
  8. 项目template中增加了对应的例子

Requirement

  1. airtest>=1.2.10

v0.5.6

16 Mar 04:21
Compare
Choose a tag to compare

Feature [For Web]

DSL

  • set cookie name[] value[] url[]
  • 设置cookie 名称[] 值[] 网址[]
  • get cookie
  • 获取cookie
  • get local storage
  • 获取local storage
  • get session storage
  • 获取session storage

Method

  • add_cookie(context, name, value, url)
  • get_cookie(context)
  • get_local_storage(context)
  • get_session_storage(context)

v0.5.5

02 Feb 04:50
Compare
Choose a tag to compare

Enhancement

Added exception handling in the video screen acquisition process

v0.5.4

19 Jan 04:14
Compare
Choose a tag to compare

Web

Add proxy browser support

App

Add detect error switch config

Fix

Airtest record fix

v0.5.2

23 Dec 08:15
Compare
Choose a tag to compare

Features

  1. support click ocr regional
  2. support ocr params
  3. update ocr doc

Bug Fix

  1. swipe overflow issue

v0.5.1

18 Dec 06:17
Compare
Choose a tag to compare

Feature

  1. Support for regional data segmentation and detect Details
  • "click ocr regional[{selector}] text[{param2}]": ["点击区域[{selector}]中扫描文案[{param2}]"]
  • "ocr regional[{selector}] exist text[{param2}]": ["扫描区块[{selector}]中存在[{param2}]的文案"]
  • "ocr regional[{selector}] contain text[{param2}]": ["扫描区块[{selector}]中包含[{param2}]的文案"]

Bug fix

  1. multiple Tags issues Details

v0.5.0

25 Nov 10:04
Compare
Choose a tag to compare

Features

  1. Support new hook event: senario success, senario fail
  2. OCR input support clear
  3. Limit PaddleOCR version

v0.4.9

16 Nov 09:54
Compare
Choose a tag to compare

Features

  1. draw box on picture after step fail
  2. support detect error in wait_ocr_text_appear

Fix

  1. click image issue

v0.4.8

06 Nov 09:14
Compare
Choose a tag to compare

Features

#122 Support user-defined browser cookies

  • cookies <List[Dict]>#
    • name <str>
    • value <str>
    • url <str> either url or domain / path are required. Optional.
    • domain <str> either url or domain / path are required Optional.
    • path <str> either url or domain / path are required Optional.
    • expires <float> Unix time in seconds. Optional.
    • httpOnly <bool> Optional.
    • secure <bool> Optional.
    • sameSite <"Strict"|"Lax"|"None"> Optional.
'''
Following is add cookie example
1. modify before_all_extend method in pscript/dsl/hook.py of your project
2. define your cookies and add it into global cache
3. flybirds will add cookies into browser
'''
from flybirds.core.global_context import GlobalContext

def before_all_extend(context):
    cookies = [{'name': 'taskid1', 'value': 'TYUUI12345ty1', "url": "https://hotel.trip.com"},
               {'name': 'taskid2', 'value': 'TYUUI12345ty2', "url": "https://hotel.trip.com"}]
    GlobalContext.set_global_cache("cookies", cookies)

v0.4.7

26 Oct 05:36
Compare
Choose a tag to compare

Feature

#120 support paddleocr config "det_limit_type" and "det_limit_side_len"

  • For history project, you can add "ocr_det_limit_type" and "ocr_det_limit_side_len" in frame_info section of flybirds_config.json
  • For new project, these two configs will be added automatically after cli create