Skip to content

Commit

Permalink
Deployed 4093b04 with MkDocs version: 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikigo committed Oct 31, 2023
1 parent 433ba21 commit 7c0ba2a
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 61 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/call-clacheck.yml

This file was deleted.

89 changes: 47 additions & 42 deletions AT开发规范/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1459,9 +1459,8 @@ <h2 id="3-tag">3. 基础框架 tag<a class="headerlink" href="#3-tag" title="Per
<h1 id="_2">三、仓库权限管理<a class="headerlink" href="#_2" title="Permanent link">&para;</a></h1>
<h2 id="1_1">1. 基础框架<a class="headerlink" href="#1_1" title="Permanent link">&para;</a></h2>
<ul>
<li>自动化测试基础框架仓库:https://gerrit.uniontech.com/admin/repos/autotest-basic-frame</li>
<li>自动化测试基础框架仓库:https://github.com/linuxdeepin/deepin-autotest-framework</li>
</ul>
<p>基础框架不允许匿名访问,如果你登录 <code>gerrit</code> 之后仍然无法访问以上链接,则需要申请访问权限;</p>
<h2 id="2_1">2. 应用仓库<a class="headerlink" href="#2_1" title="Permanent link">&para;</a></h2>
<ul>
<li>自动化应用仓库: <code>https://gerrit.uniontech.com/admin/repos/autotest_ + app_name</code></li>
Expand Down Expand Up @@ -1545,17 +1544,19 @@ <h2 id="1_3">1. 基于类写用例<a class="headerlink" href="#1_3" title="Perma
<p>一个类里面可以有多个用例函数,这取决这条用例有多少个测试点:</p>
</li>
</ul>
<div class="highlight"><pre><span></span><code><a id="__codelineno-11-1" name="__codelineno-11-1" href="#__codelineno-11-1"></a><span class="k">class</span> <span class="nc">TestMusic</span><span class="p">(</span><span class="n">BaseCase</span><span class="p">):</span>
<a id="__codelineno-11-2" name="__codelineno-11-2" href="#__codelineno-11-2"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;音乐用例&quot;&quot;&quot;</span>
<a id="__codelineno-11-3" name="__codelineno-11-3" href="#__codelineno-11-3"></a>
<a id="__codelineno-11-4" name="__codelineno-11-4" href="#__codelineno-11-4"></a> <span class="k">def</span> <span class="nf">test_music_679537_1</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-11-5" name="__codelineno-11-5" href="#__codelineno-11-5"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;任务栏启动音乐&quot;&quot;&quot;</span>
<a id="__codelineno-11-6" name="__codelineno-11-6" href="#__codelineno-11-6"></a>
<a id="__codelineno-11-7" name="__codelineno-11-7" href="#__codelineno-11-7"></a> <span class="k">def</span> <span class="nf">test_music_679537_2</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-11-8" name="__codelineno-11-8" href="#__codelineno-11-8"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;启动器启动音乐&quot;&quot;&quot;</span>
<a id="__codelineno-11-9" name="__codelineno-11-9" href="#__codelineno-11-9"></a>
<a id="__codelineno-11-10" name="__codelineno-11-10" href="#__codelineno-11-10"></a> <span class="k">def</span> <span class="nf">test_music_679537_3</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-11-11" name="__codelineno-11-11" href="#__codelineno-11-11"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;桌面启动音乐&quot;&quot;&quot;</span>
<div class="highlight"><pre><span></span><code><a id="__codelineno-11-1" name="__codelineno-11-1" href="#__codelineno-11-1"></a><span class="c1"># test_music_679537.py</span>
<a id="__codelineno-11-2" name="__codelineno-11-2" href="#__codelineno-11-2"></a>
<a id="__codelineno-11-3" name="__codelineno-11-3" href="#__codelineno-11-3"></a><span class="k">class</span> <span class="nc">TestMusic</span><span class="p">(</span><span class="n">BaseCase</span><span class="p">):</span>
<a id="__codelineno-11-4" name="__codelineno-11-4" href="#__codelineno-11-4"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;音乐用例&quot;&quot;&quot;</span>
<a id="__codelineno-11-5" name="__codelineno-11-5" href="#__codelineno-11-5"></a>
<a id="__codelineno-11-6" name="__codelineno-11-6" href="#__codelineno-11-6"></a> <span class="k">def</span> <span class="nf">test_music_679537_1</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-11-7" name="__codelineno-11-7" href="#__codelineno-11-7"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;任务栏启动音乐&quot;&quot;&quot;</span>
<a id="__codelineno-11-8" name="__codelineno-11-8" href="#__codelineno-11-8"></a>
<a id="__codelineno-11-9" name="__codelineno-11-9" href="#__codelineno-11-9"></a> <span class="k">def</span> <span class="nf">test_music_679537_2</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-11-10" name="__codelineno-11-10" href="#__codelineno-11-10"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;启动器启动音乐&quot;&quot;&quot;</span>
<a id="__codelineno-11-11" name="__codelineno-11-11" href="#__codelineno-11-11"></a>
<a id="__codelineno-11-12" name="__codelineno-11-12" href="#__codelineno-11-12"></a> <span class="k">def</span> <span class="nf">test_music_679537_3</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-11-13" name="__codelineno-11-13" href="#__codelineno-11-13"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;桌面启动音乐&quot;&quot;&quot;</span>
</code></pre></div>
<h2 id="2_3">2. 用例函数规范<a class="headerlink" href="#2_3" title="Permanent link">&para;</a></h2>
<ul>
Expand All @@ -1574,36 +1575,40 @@ <h2 id="2_3">2. 用例函数规范<a class="headerlink" href="#2_3" title="Perma
<p>举例,<code>PMS</code> 用例:</p>
<p><img alt="" src="https://pic.imgdb.cn/item/64f054c8661c6c8e54ff4c71.png" /></p>
<p>直接选中用例内容,复制下来,然后粘贴到自动化用例脚本中:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-12-1" name="__codelineno-12-1" href="#__codelineno-12-1"></a><span class="k">class</span> <span class="nc">TestMusic</span><span class="p">(</span><span class="n">BaseCase</span><span class="p">):</span>
<a id="__codelineno-12-2" name="__codelineno-12-2" href="#__codelineno-12-2"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;音乐用例&quot;&quot;&quot;</span>
<a id="__codelineno-12-3" name="__codelineno-12-3" href="#__codelineno-12-3"></a>
<a id="__codelineno-12-4" name="__codelineno-12-4" href="#__codelineno-12-4"></a> <span class="k">def</span> <span class="nf">test_music_679537</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-12-5" name="__codelineno-12-5" href="#__codelineno-12-5"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;演唱者-平铺视图下进入演唱者详情页&quot;&quot;&quot;</span>
<a id="__codelineno-12-6" name="__codelineno-12-6" href="#__codelineno-12-6"></a>
<a id="__codelineno-12-7" name="__codelineno-12-7" href="#__codelineno-12-7"></a> <span class="c1"># 1</span>
<a id="__codelineno-12-8" name="__codelineno-12-8" href="#__codelineno-12-8"></a> <span class="c1"># 点击右上角的【平铺视图】按钮</span>
<a id="__codelineno-12-9" name="__codelineno-12-9" href="#__codelineno-12-9"></a> <span class="c1"># 切换为平铺视图</span>
<a id="__codelineno-12-10" name="__codelineno-12-10" href="#__codelineno-12-10"></a> <span class="c1"># 2</span>
<a id="__codelineno-12-11" name="__codelineno-12-11" href="#__codelineno-12-11"></a> <span class="c1"># 双击任意演唱者封面</span>
<a id="__codelineno-12-12" name="__codelineno-12-12" href="#__codelineno-12-12"></a> <span class="c1"># 进入演唱者详情页面</span>
<div class="highlight"><pre><span></span><code><a id="__codelineno-12-1" name="__codelineno-12-1" href="#__codelineno-12-1"></a><span class="c1"># test_music_679537.py</span>
<a id="__codelineno-12-2" name="__codelineno-12-2" href="#__codelineno-12-2"></a>
<a id="__codelineno-12-3" name="__codelineno-12-3" href="#__codelineno-12-3"></a><span class="k">class</span> <span class="nc">TestMusic</span><span class="p">(</span><span class="n">BaseCase</span><span class="p">):</span>
<a id="__codelineno-12-4" name="__codelineno-12-4" href="#__codelineno-12-4"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;音乐用例&quot;&quot;&quot;</span>
<a id="__codelineno-12-5" name="__codelineno-12-5" href="#__codelineno-12-5"></a>
<a id="__codelineno-12-6" name="__codelineno-12-6" href="#__codelineno-12-6"></a> <span class="k">def</span> <span class="nf">test_music_679537</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-12-7" name="__codelineno-12-7" href="#__codelineno-12-7"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;演唱者-平铺视图下进入演唱者详情页&quot;&quot;&quot;</span>
<a id="__codelineno-12-8" name="__codelineno-12-8" href="#__codelineno-12-8"></a>
<a id="__codelineno-12-9" name="__codelineno-12-9" href="#__codelineno-12-9"></a> <span class="c1"># 1</span>
<a id="__codelineno-12-10" name="__codelineno-12-10" href="#__codelineno-12-10"></a> <span class="c1"># 点击右上角的【平铺视图】按钮</span>
<a id="__codelineno-12-11" name="__codelineno-12-11" href="#__codelineno-12-11"></a> <span class="c1"># 切换为平铺视图</span>
<a id="__codelineno-12-12" name="__codelineno-12-12" href="#__codelineno-12-12"></a> <span class="c1"># 2</span>
<a id="__codelineno-12-13" name="__codelineno-12-13" href="#__codelineno-12-13"></a> <span class="c1"># 双击任意演唱者封面</span>
<a id="__codelineno-12-14" name="__codelineno-12-14" href="#__codelineno-12-14"></a> <span class="c1"># 进入演唱者详情页面</span>
</code></pre></div>
<p>上例中井号注释部分就是直接从 <code>PMS</code> 上复制过来的,在此基础上写用例:</p>
<div class="highlight"><pre><span></span><code><a id="__codelineno-13-1" name="__codelineno-13-1" href="#__codelineno-13-1"></a><span class="k">class</span> <span class="nc">TestMusic</span><span class="p">(</span><span class="n">BaseCase</span><span class="p">):</span>
<a id="__codelineno-13-2" name="__codelineno-13-2" href="#__codelineno-13-2"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;音乐用例&quot;&quot;&quot;</span>
<a id="__codelineno-13-3" name="__codelineno-13-3" href="#__codelineno-13-3"></a>
<a id="__codelineno-13-4" name="__codelineno-13-4" href="#__codelineno-13-4"></a> <span class="k">def</span> <span class="nf">test_music_679537</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-13-5" name="__codelineno-13-5" href="#__codelineno-13-5"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;演唱者-平铺视图下进入演唱者详情页&quot;&quot;&quot;</span>
<a id="__codelineno-13-6" name="__codelineno-13-6" href="#__codelineno-13-6"></a> <span class="n">music</span> <span class="o">=</span> <span class="n">DeepinMusicWidget</span><span class="p">()</span>
<a id="__codelineno-13-7" name="__codelineno-13-7" href="#__codelineno-13-7"></a> <span class="n">music</span><span class="o">.</span><span class="n">click_singer_btn_in_music_by_ui</span><span class="p">()</span>
<a id="__codelineno-13-8" name="__codelineno-13-8" href="#__codelineno-13-8"></a> <span class="c1"># 1</span>
<a id="__codelineno-13-9" name="__codelineno-13-9" href="#__codelineno-13-9"></a> <span class="c1"># 点击右上角的【平铺视图】按钮</span>
<a id="__codelineno-13-10" name="__codelineno-13-10" href="#__codelineno-13-10"></a> <span class="n">music</span><span class="o">.</span><span class="n">click_icon_mode_in_music_by_ui</span><span class="p">()</span>
<a id="__codelineno-13-11" name="__codelineno-13-11" href="#__codelineno-13-11"></a> <span class="c1"># 切换为平铺视图</span>
<a id="__codelineno-13-12" name="__codelineno-13-12" href="#__codelineno-13-12"></a> <span class="c1"># 2</span>
<a id="__codelineno-13-13" name="__codelineno-13-13" href="#__codelineno-13-13"></a> <span class="c1"># 双击任意演唱者封面</span>
<a id="__codelineno-13-14" name="__codelineno-13-14" href="#__codelineno-13-14"></a> <span class="n">music</span><span class="o">.</span><span class="n">double_click_first_singer_in_singer_icon_view_by_ui</span><span class="p">()</span>
<a id="__codelineno-13-15" name="__codelineno-13-15" href="#__codelineno-13-15"></a> <span class="c1"># 进入演唱者详情页面</span>
<a id="__codelineno-13-16" name="__codelineno-13-16" href="#__codelineno-13-16"></a> <span class="bp">self</span><span class="o">.</span><span class="n">assert_xxx</span>
<div class="highlight"><pre><span></span><code><a id="__codelineno-13-1" name="__codelineno-13-1" href="#__codelineno-13-1"></a><span class="c1"># test_music_679537.py</span>
<a id="__codelineno-13-2" name="__codelineno-13-2" href="#__codelineno-13-2"></a>
<a id="__codelineno-13-3" name="__codelineno-13-3" href="#__codelineno-13-3"></a><span class="k">class</span> <span class="nc">TestMusic</span><span class="p">(</span><span class="n">BaseCase</span><span class="p">):</span>
<a id="__codelineno-13-4" name="__codelineno-13-4" href="#__codelineno-13-4"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;音乐用例&quot;&quot;&quot;</span>
<a id="__codelineno-13-5" name="__codelineno-13-5" href="#__codelineno-13-5"></a>
<a id="__codelineno-13-6" name="__codelineno-13-6" href="#__codelineno-13-6"></a> <span class="k">def</span> <span class="nf">test_music_679537</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<a id="__codelineno-13-7" name="__codelineno-13-7" href="#__codelineno-13-7"></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;演唱者-平铺视图下进入演唱者详情页&quot;&quot;&quot;</span>
<a id="__codelineno-13-8" name="__codelineno-13-8" href="#__codelineno-13-8"></a> <span class="n">music</span> <span class="o">=</span> <span class="n">DeepinMusicWidget</span><span class="p">()</span>
<a id="__codelineno-13-9" name="__codelineno-13-9" href="#__codelineno-13-9"></a> <span class="n">music</span><span class="o">.</span><span class="n">click_singer_btn_in_music_by_ui</span><span class="p">()</span>
<a id="__codelineno-13-10" name="__codelineno-13-10" href="#__codelineno-13-10"></a> <span class="c1"># 1</span>
<a id="__codelineno-13-11" name="__codelineno-13-11" href="#__codelineno-13-11"></a> <span class="c1"># 点击右上角的【平铺视图】按钮</span>
<a id="__codelineno-13-12" name="__codelineno-13-12" href="#__codelineno-13-12"></a> <span class="n">music</span><span class="o">.</span><span class="n">click_icon_mode_in_music_by_ui</span><span class="p">()</span>
<a id="__codelineno-13-13" name="__codelineno-13-13" href="#__codelineno-13-13"></a> <span class="c1"># 切换为平铺视图</span>
<a id="__codelineno-13-14" name="__codelineno-13-14" href="#__codelineno-13-14"></a> <span class="c1"># 2</span>
<a id="__codelineno-13-15" name="__codelineno-13-15" href="#__codelineno-13-15"></a> <span class="c1"># 双击任意演唱者封面</span>
<a id="__codelineno-13-16" name="__codelineno-13-16" href="#__codelineno-13-16"></a> <span class="n">music</span><span class="o">.</span><span class="n">double_click_first_singer_in_singer_icon_view_by_ui</span><span class="p">()</span>
<a id="__codelineno-13-17" name="__codelineno-13-17" href="#__codelineno-13-17"></a> <span class="c1"># 进入演唱者详情页面</span>
<a id="__codelineno-13-18" name="__codelineno-13-18" href="#__codelineno-13-18"></a> <span class="bp">self</span><span class="o">.</span><span class="n">assert_xxx</span>
</code></pre></div>
<p>你看,非常清楚每一步在做什么,重点是省去了写注释的时间,真的炒鸡方便。</p>
<ul>
Expand Down Expand Up @@ -1816,7 +1821,7 @@ <h1 id="_6">七、其他不为人知的细节<a class="headerlink" href="#_6" ti
<small>

最后更新:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">2023年9月13日</span>
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">2023年10月31日</span>


</small>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ <h1>快速开始</h1>
<p><strong>文档</strong>: <a href="https://linuxdeepin.github.io/deepin-autotest-framework" target="_blank">https://linuxdeepin.github.io/deepin-autotest-framework</a></p>
<p><strong>源码</strong>: <a href="https://github.com/linuxdeepin/deepin-autotest-framework" target="_blank">https://github.com/linuxdeepin/deepin-autotest-framework</a></p>
<hr />
<p>有趣(YouQu)是深度科技设计和开发的一个自动化测试基础框架,采用结构分层的设计理念,支持多元化元素定位和断言、用例标签化管理和执行、强大的日志和报告输出等特色功能,同时完美兼容X11、Wayland显示协议,环境部署简单,操作易上手。</p>
<p>有趣(YouQu)是深度科技开源的一个用于 <code>Deepin/UOS</code> 操作系统(Linux)的自动化测试框架,采用结构分层的设计理念,支持多元化元素定位和断言、用例标签化管理和执行、强大的日志和报告输出等特色功能,同时完美兼容X11、Wayland显示协议,环境部署简单,操作易上手。</p>
<h3 id="18">爱上 “有趣” 的 18 个理由<a class="headerlink" href="#18" title="Permanent link">&para;</a></h3>
<ol>
<li>核心库提供了统一的接口,编写方法时只需要导入一个包就可以使用到核心库提供的所有功能;</li>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion 框架功能介绍/全局配置/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ <h3 id="2">2. 配置对象获取<a class="headerlink" href="#2" title="Permanent
<a id="__codelineno-2-207" name="__codelineno-2-207" href="#__codelineno-2-207"></a><span class="na">EXPORT_CSV_FILE</span><span class="w"> </span><span class="o">=</span>
<a id="__codelineno-2-208" name="__codelineno-2-208" href="#__codelineno-2-208"></a>
<a id="__codelineno-2-209" name="__codelineno-2-209" href="#__codelineno-2-209"></a><span class="c1">;导出 case_list.csv 文件时配置的字段名,用例名称默认存在第一列,无需添加</span>
<a id="__codelineno-2-210" name="__codelineno-2-210" href="#__codelineno-2-210"></a><span class="na">EXPORT_CSV_HEARD</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">用例级别,用例类型,测试级别,是否跳过</span>
<a id="__codelineno-2-210" name="__codelineno-2-210" href="#__codelineno-2-210"></a><span class="na">EXPORT_CSV_HEARD</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">用例级别,用例类型,测试级别,下线CD</span>
<a id="__codelineno-2-211" name="__codelineno-2-211" href="#__codelineno-2-211"></a>
<a id="__codelineno-2-212" name="__codelineno-2-212" href="#__codelineno-2-212"></a>
<a id="__codelineno-2-213" name="__codelineno-2-213" href="#__codelineno-2-213"></a><span class="k">[log_cli]</span>
Expand Down
Loading

0 comments on commit 7c0ba2a

Please sign in to comment.