Skip to content

Commit

Permalink
fix: 文档图片资源使用CDN加速
Browse files Browse the repository at this point in the history
Description:

Log:
  • Loading branch information
mikigo committed Aug 31, 2023
1 parent 86487c8 commit c7f13e4
Show file tree
Hide file tree
Showing 11 changed files with 72 additions and 58 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![](https://raw.githubusercontent.com/mikigo/pic/main/logo.png)

# YouQu

> YouQu, a simple and powerful autotest framework.
Expand All @@ -7,6 +9,8 @@
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/youqu)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/youqu)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/youqu)
![Static Badge](https://img.shields.io/badge/UOS%2FDeepin-Platform?style=flat-square&label=OS)
![Static Badge](https://img.shields.io/badge/Linux-Platform?style=flat-square&label=Platform)

[![Downloads](https://static.pepy.tech/badge/youqu/week)](https://pepy.tech/project/youqu)
[![Downloads](https://static.pepy.tech/badge/youqu/month)](https://pepy.tech/project/youqu)
Expand Down Expand Up @@ -54,7 +58,7 @@ youqu manage.py run

## Documentations

- [Documents](https://mikigo.github.io/youqu-docs/)
- [Documents](https://linuxdeepin.github.io/deepin-autotest-framework/)

## Getting help

Expand Down
6 changes: 5 additions & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![](https://raw.githubusercontent.com/mikigo/pic/main/logo.png)

# 有趣

> 有趣,是一个使用简单且功能强大的自动化测试基础框架。
Expand All @@ -7,6 +9,8 @@
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/youqu)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/youqu)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/youqu)
![Static Badge](https://img.shields.io/badge/UOS%2FDeepin-Platform?style=flat-square&label=OS)
![Static Badge](https://img.shields.io/badge/Linux-Platform?style=flat-square&label=Platform)

[![Downloads](https://static.pepy.tech/badge/youqu/week)](https://pepy.tech/project/youqu)
[![Downloads](https://static.pepy.tech/badge/youqu/month)](https://pepy.tech/project/youqu)
Expand Down Expand Up @@ -54,7 +58,7 @@ youqu manage.py run

## 文档

- [文档](https://mikigo.github.io/youqu-docs/)
- [文档](https://linuxdeepin.github.io/deepin-autotest-framework/)

## 帮助

Expand Down
8 changes: 7 additions & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,10 @@ def pytest_collection_modifyitems(session):

if session.config.option.autostart:
for item in session.items[::-1]:
if letmego.read_testcase_running_status(item):
_reruns = None
if hasattr(session.config.option, "reruns"):
_reruns = session.config.option.reruns
if letmego.read_testcase_running_status(item, reruns=_reruns):
session.items.remove(item)

if (suite_id or task_id) and session.items:
Expand Down Expand Up @@ -540,6 +543,9 @@ def pytest_collection_finish(session):

def pytest_runtest_setup(item):
"""pytest_runtest_setup"""
if hasattr(item, "execution_count"):
letmego.conf.setting.EXECUTION_COUNT = item.execution_count

print() # 处理首行日志换行的问题
current_item_count = (
f"[{item.session.items.index(item) + 1}/{item.session.item_count}]"
Expand Down
4 changes: 2 additions & 2 deletions docs/AT基础框架设计方案.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@

整体的框架设计在《自动化测试架构设计》文档里面已经有详细描述了,这里贴一下整体的架构图:

![](https://raw.githubusercontent.com/mikigo/pic/main/frame_after.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/frame_after.png)

为了突显本文的重点,抽取其中重要功能模块,如下图:

![](https://raw.githubusercontent.com/mikigo/pic/main/basic_frame.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/basic_frame.png)

### 3、目录结构

Expand Down
8 changes: 4 additions & 4 deletions docs/AT应用库设计方案.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AT 应用库改造是基于自动化测试基础框架进行用例方法和业

整体仍然遵循 PO 设计理念,根据业务需要,将文管业务层进行 3 层划分:

![](https://raw.githubusercontent.com/mikigo/pic/maindfm_frame.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0dfm_frame.png)

### 2、目录结构

Expand Down Expand Up @@ -85,11 +85,11 @@ class BaseWidget(Src):
右键菜单:暂时不考虑为单独的模块,考虑以图像识别的定位方案做成公共库。
![](https://raw.githubusercontent.com/mikigo/pic/maindfm.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0dfm.png)
![](https://raw.githubusercontent.com/mikigo/pic/mainpop1.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0pop1.png)
![](https://raw.githubusercontent.com/mikigo/pic/mainpop2.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0pop2.png)
- 各个模块只继承基类
Expand Down
2 changes: 1 addition & 1 deletion docs/AT开发规范.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class TestMusic(BaseCase):

举例,`PMS` 用例:

![](https://raw.githubusercontent.com/mikigo/pic/main/pms_case.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/pms_case.png)

直接选中用例内容,复制下来,然后粘贴到自动化用例脚本中:

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
comments: true
![](https://raw.githubusercontent.com/mikigo/pic/main/logo.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/logo.png)

有趣(YouQu)
================
Expand Down
4 changes: 2 additions & 2 deletions docs/智能化功能测试.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](https://raw.githubusercontent.com/mikigo/pic/main/aitest.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/aitest.png)

# 智能化功能测试

Expand Down Expand Up @@ -413,7 +413,7 @@ python3 run.py
python3 -m serial.tools.list_ports -v
```

![](https://raw.githubusercontent.com/mikigo/pic/main/图1串口列表.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图1串口列表.png)

(2)修改串口的权限

Expand Down
22 changes: 11 additions & 11 deletions docs/智能化性能测试.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](https://raw.githubusercontent.com/mikigo/pic/main/perflogo.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/perflogo.png)

# 智能化性能测试

Expand Down Expand Up @@ -416,7 +416,7 @@ apps

## 五、测试流程

![](https://raw.githubusercontent.com/mikigo/pic/main/图1测试流程.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图1测试流程.png)

## 六、用例编写及方法参数指引

Expand Down Expand Up @@ -717,51 +717,51 @@ usb_mk.drag_rel(100, 200) # 鼠标向左边移动100个像素,向下移动20

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.41d72e8dUYx2pi&id=582653718178&_u=i25r20ia6a2e

![](https://raw.githubusercontent.com/mikigo/pic/main/图3LCUS-2继电器正反面.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图3LCUS-2继电器正反面.png)



### 2、USB 延长线

普通的 `USB` 线即可。

![](https://raw.githubusercontent.com/mikigo/pic/main/图4USB延长线.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图4USB延长线.png)

### 3、杜邦线

3.1、`40P` 母对公杜邦线。

![](https://raw.githubusercontent.com/mikigo/pic/main/图5-40P母对公杜邦线.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图5-40P母对公杜邦线.png)



3.2、一母二公杜邦线。

![](https://raw.githubusercontent.com/mikigo/pic/main/图6一母二公杜邦线.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图6一母二公杜邦线.png)



### 4、安装图文教程

4.1、使用 `USB` 延长线连接控制端和继电器。

![](https://raw.githubusercontent.com/mikigo/pic/main/图7继电器连接控制端.jpg)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图7继电器连接控制端.jpg)

4.2、在继电器常端和公共端均连接一根杜邦线。

![](https://raw.githubusercontent.com/mikigo/pic/main/图8继电器连接杜邦线.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图8继电器连接杜邦线.png)



4.3、在主板上开机针和重启针上插上一母二公杜邦线。

![](https://raw.githubusercontent.com/mikigo/pic/main/图9电源排针.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图9电源排针.png)

4.4、将开机针外接的一母二公杜邦线的两根公线分别接入继电器的1路继电器(如图 1左侧继电器)和原电源开关。

4.5、将重启针外接的一母二公杜邦线的两根公线分别接入继电器的2路继电器(如图 1 右侧继电器)和原电源开关。

![](https://raw.githubusercontent.com/mikigo/pic/main/图10开机重启针接线.jpg)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图10开机重启针接线.jpg)

若想保留原电源开关的电源灯,可根据如上图所示,使用杜邦线连接主板上的电源灯和原电源开关

Expand All @@ -781,7 +781,7 @@ https://item.taobao.com/item.htm?spm=a1z09.2.0.0.41d72e8dUYx2pi&id=582653718178&
sudo docker container ls # 列出运行中的 Docker 容器
```
![](https://raw.githubusercontent.com/mikigo/pic/main/图11正常容器列表.png)
![](https://cdn.jsdelivr.net/gh/mikigo/pic@1.0/图11正常容器列表.png)
2)缺少 uos 容器,检查 USB 串口连接线和采集盒连接线是否正常,重启后执行
Expand Down
Loading

0 comments on commit c7f13e4

Please sign in to comment.