Giter VIP home page Giter VIP logo

qt4c's Introduction

QT4C

QT4C (Quick Test for Client) is a QTA test automation driver for Win32 client application.

Features

  • Powerful UI driver, support Windows native controls, Web controls, Accessibility controls
  • Writing maintainable functional tests with QTA QPath technology and QTA UI framework

QT4C should be used with QTAF, please check it first.

Get Started

Check out our Usage Document to get going with QT4C. There is also sample code that shows how to run testcase with QT4C.

Anatomy

If you are interested in anatomy of QT4C, the Design Document may be useful to you.


QT4C (Quick Test for Client),基于QTA提供面向Win32应用的UI测试自动化测试框架。

特性

  • 强大UI驱动引擎支持,Windows Native控件、Web控件、Accessibility控件
  • 基于QPath技术和QTA UI框架,降低产品变化的脚本维护投入

QT4C需要和QTAF一起使用,请先参考QTAF的使用

入门指南

请查看我们的使用文档以便您快速上手QT4C,同时可以参考我们的示例代码

框架原理

如果你对QT4C的实现原理感兴趣,可以参考我们的设计文档


欢迎加入QQ群(432699528)交流使用和反馈

qt4c's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qt4c's Issues

python版本推荐3.x?

我安装了3.9 3.8发现安装相关依赖都没有符合的版本,能否准确说明版本需求范围?

高DPI下uia控件类型鼠标点击偏移

高DPI场景下uia控件类型鼠标点击出现偏移,无法准确点击控件。
怀疑与提交[cbbe4e3]有关:

  1. 提交[cbbe4e3]中修改了缩放比例,但仅添加到了wincontrols.Control类的BoundingRect中,没有对uiacontrols中内容进行对应的缩放比例添加。
  2. 另外调用的getDpi()中是默认使用desktop的hwnd,window系统在切换缩放后dpi不会自动进行切换,会导致获取到的dpi为错误值,即例如:从175%缩放切换至150%缩放后,得到的dpi仍为175%的对应数值,重启电脑才能获取到正确的数值。
  3. 回滚至提交[cbbe4e3]前的2.2.1版本测试能正常使用,且高DPI场景也能正常使用。
    不太明白提交[cbbe4e3]具体是为了解决什么问题的一个fix,但似乎目前是引起了高DPI下uia控件类型无法准确点击控件的问题。

提取windows10的文件问题

怀疑是comtypes版本或者windows10兼容问题

执行系统:windows10
python版本:3.7.6
comtypes版本:1.1.8
现象:FileNotFoundError: [WinError 2] 系统找不到指定的文件。: 'oleacc.dll'
报错截图:
image

QT4W_demo_project调试时,无法使用chrome浏览器打开URL

F:\QTA\QT4WDemoProj-master>python manage.py runscript webdemotest/hello.py

测试用例:WebDemoTest 所有者:qta 优先级:High 超时:5分钟


步骤1: 1. 在浏览器中打开测试页面
2020-03-03 11:02:45,152 2260 [Browser] Browser ChromeBrowser not implement clear_data method
CRITICAL: run_test执行失败
Traceback (most recent call last):
File "D:\python3\lib\site-packages\browser\chrome.py", line 125, in get_browser_path
hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, sub_key)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\python3\lib\site-packages\browser\chrome.py", line 130, in get_browser_path
hkey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, sub_key)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

python3兼容性支持优化

由于现在python3有很多个版本,我在安装不同python3版本的时候,有些支持库不支持问题,或者即使都安装好了,执行用例的时候,也会出现库兼容性的问题,希望优化一下,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.