其他分享
首页 > 其他分享> > KatalonRecorder Demo

KatalonRecorder Demo

作者:互联网

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>auto</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">dbServer</td></tr>
</thead>
<tbody>
<tr><td>open</td><td>https://www.tapd.cn/38117654/bugtrace/bugs/add?jump_from_shortcut=true<datalist><option>https://www.tapd.cn/38117654/bugtrace/bugs/add?jump_from_shortcut=true</option><option>xpath=//div[@id='root']/div/div[2]/div/div/div[4]/div/a/i</option><option>xpath=//div[4]/div/a/i</option><option>css=i.font.tapd-icon-add</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=//div[@id='BugDescriptionDiv']/div/div/div/div/div/div/button[3]/span/span<datalist><option>xpath=//div[@id='BugDescriptionDiv']/div/div/div/div/div/div/button[3]/span/span</option><option>xpath=//button[3]/span/span</option><option>css=span.editor-btn.font-editor.font-editor-source</option></datalist></td><td></td>
</tr>
<tr><td>setText</td><td>xpath=//div[@id='BugDescriptionDiv']/div/div[3]/div[2]/div/div/textarea<datalist><option>xpath=//div[@id='BugDescriptionDiv']/div/div[3]/div[2]/div/div/textarea</option><option>xpath=//div[2]/div/div/textarea</option><option>css=div.CodeMirror.cm-s-default.CodeMirror-wrap.CodeMirror-focused &gt; div &gt; textarea</option></datalist></td><td>&lt;p&gt;&lt;span style="color: #359746;"&gt;步骤:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp; &amp;nbsp; 1、&lt;/p&gt; &lt;p&gt;&amp;nbsp; &amp;nbsp; 2、&lt;/p&gt; &lt;p&gt;&lt;span style="color: #359746;"&gt;预期:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #ff3b30;"&gt;结果:&lt;/span&gt;&lt;/p&gt;</td>
</tr>
<tr><td>click</td><td>link=&lt;&lt; 返回<datalist><option>link=&lt;&lt; 返回</option><option>xpath=//a[contains(text(),'&lt;&lt; 返回')]</option><option>xpath=//div[@id='BugDescriptionDiv']/div/div[3]/div/a</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='正文'])[1]/following::a[1]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='​'])[1]/preceding::a[1]</option><option>xpath=//*/text()[normalize-space(.)='&lt;&lt; 返回']/parent::*</option><option>xpath=//div[3]/div/div/div[3]/div/a</option><option>css=a.j-cherry-code-back.cherry-code-back</option></datalist></td><td></td>
</tr>
<tr><td>select</td><td>id=BugVersionReport<datalist><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='-空-'])[1]/following::td[1]</option><option>xpath=//*/text()=“Server_V1.0.0.1”</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Markdown'])[1]/following::td[2]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Auxiliary_V1.0.0.1'])[2]/preceding::td[1]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='版本1'])[2]/preceding::td[2]</option><option>xpath=//tr[2]/td</option><option>css=td[title="Server_V1.0.0.1"]</option><option>xpath=//*[@title='Server_V1.0.0.1']</option><option>xpath=/html/body/div[8]/div[2]/table/tbody/tr[2]</option><option>xpath=//*[text()=’Server_V1.0.0.1’]</option><option>xpath=/html/body/div[9]/div[2]/table/tbody/tr[2]/td</option><option>xpath=//*text()=“Server_V1.0.0.1”</option><option>id=BugVersionReport</option></datalist></td><td>value=Server_V1.0.0.1</td>
</tr>
<tr><td>select</td><td>id=BugModule<datalist><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Analysis Center'])[2]/following::td[1]</option><option>xpath=//*text()=“Server”</option><option>xpath=//*/text()=“Server”</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='RDM'])[2]/following::td[2]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Analysis Tool'])[2]/preceding::td[1]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Diagnostics Tool'])[2]/preceding::td[2]</option><option>xpath=//tr[7]/td</option><option>css=td[title="Server"]</option><option>xpath=/html/body/div[9]/div[2]/table/tbody/tr[7]/td</option><option>xpath=/html/body/div[9]/div[2]/table/tbody/tr[7]</option><option>xpath=/html/body/div[8]/div[2]/table/tbody/tr[7]/td</option><option>id=BugModule</option></datalist></td><td>value=Server</td>
</tr>
<tr><td>type</td><td>id=BugCurrentOwnerValue<datalist><option>BugCurrentOwnerValue</option><option>id=BugCurrentOwnerValue</option></datalist></td><td>周宏伟</td>
</tr>
</tbody></table>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">AuxiliaryTool</td></tr>
</thead>
<tbody>
<tr><td>open</td><td>https://www.tapd.cn/38117654/bugtrace/bugs/add?jump_from_shortcut=true<datalist><option>https://www.tapd.cn/38117654/bugtrace/bugs/add?jump_from_shortcut=true</option><option>xpath=//div[@id='root']/div/div[2]/div/div/div[4]/div/a/i</option><option>xpath=//div[4]/div/a/i</option><option>css=i.font.tapd-icon-add</option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>xpath=//div[@id='BugDescriptionDiv']/div/div/div/div/div/div/button[3]/span/span<datalist><option>xpath=//div[@id='BugDescriptionDiv']/div/div/div/div/div/div/button[3]/span/span</option><option>xpath=//button[3]/span/span</option><option>css=span.editor-btn.font-editor.font-editor-source</option></datalist></td><td></td>
</tr>
<tr><td>setText</td><td>id=BugTitle<datalist><option>id=BugTitle</option></datalist></td><td>【FileMonitor】</td>
</tr>
<tr><td>setText</td><td>xpath=//div[@id='BugDescriptionDiv']/div/div[3]/div[2]/div/div/textarea<datalist><option>xpath=//div[@id='BugDescriptionDiv']/div/div[3]/div[2]/div/div/textarea</option><option>xpath=//div[2]/div/div/textarea</option><option>css=div.CodeMirror.cm-s-default.CodeMirror-wrap.CodeMirror-focused &gt; div &gt; textarea</option></datalist></td><td>&lt;p&gt;&lt;span style="color: #359746;"&gt;步骤:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp; &amp;nbsp; 1、&lt;/p&gt; &lt;p&gt;&amp;nbsp; &amp;nbsp; 2、&lt;/p&gt; &lt;p&gt;&lt;span style="color: #359746;"&gt;预期:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: #ff3b30;"&gt;结果:&lt;/span&gt;&lt;/p&gt;</td>
</tr>
<tr><td>click</td><td>link=&lt;&lt; 返回<datalist><option>link=&lt;&lt; 返回</option><option>xpath=//a[contains(text(),'&lt;&lt; 返回')]</option><option>xpath=//div[@id='BugDescriptionDiv']/div/div[3]/div/a</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='正文'])[1]/following::a[1]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='​'])[1]/preceding::a[1]</option><option>xpath=//*/text()[normalize-space(.)='&lt;&lt; 返回']/parent::*</option><option>xpath=//div[3]/div/div/div[3]/div/a</option><option>css=a.j-cherry-code-back.cherry-code-back</option></datalist></td><td></td>
</tr>
<tr><td>select</td><td>id=BugVersionReport<datalist><option>id=BugVersionReport</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='-空-'])[1]/following::td[1]</option><option>xpath=//*/text()=“Server_V1.0.0.1”</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Markdown'])[1]/following::td[2]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Auxiliary_V1.0.0.1'])[2]/preceding::td[1]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='版本1'])[2]/preceding::td[2]</option><option>xpath=//tr[2]/td</option><option>css=td[title="Server_V1.0.0.1"]</option><option>xpath=//*[@title='Server_V1.0.0.1']</option><option>xpath=/html/body/div[8]/div[2]/table/tbody/tr[2]</option><option>xpath=//*[text()=’Server_V1.0.0.1’]</option><option>xpath=/html/body/div[9]/div[2]/table/tbody/tr[2]/td</option><option>xpath=//*text()=“Server_V1.0.0.1”</option></datalist></td><td>value=Auxiliary_V1.0.0.1</td>
</tr>
<tr><td>select</td><td>id=BugModule<datalist><option>id=BugModule</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Analysis Center'])[2]/following::td[1]</option><option>xpath=//*text()=“Server”</option><option>xpath=//*/text()=“Server”</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='RDM'])[2]/following::td[2]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Analysis Tool'])[2]/preceding::td[1]</option><option>xpath=(.//*[normalize-space(text()) and normalize-space(.)='Diagnostics Tool'])[2]/preceding::td[2]</option><option>xpath=//tr[7]/td</option><option>css=td[title="Server"]</option><option>xpath=/html/body/div[9]/div[2]/table/tbody/tr[7]/td</option><option>xpath=/html/body/div[9]/div[2]/table/tbody/tr[7]</option><option>xpath=/html/body/div[8]/div[2]/table/tbody/tr[7]/td</option></datalist></td><td>value=AuxiliaryTool</td>
</tr>
<tr><td>type</td><td>id=BugCurrentOwnerValue<datalist><option>id=BugCurrentOwnerValue</option><option>BugCurrentOwnerValue</option></datalist></td><td>何意东</td>
</tr>
</tbody></table>
</body>
</html>

 

保存名为:auto.krecorder

标签:xpath,normalize,gt,space,KatalonRecorder,lt,Demo,div
来源: https://www.cnblogs.com/ai594ai/p/16277860.html