Test ebay

This commit is contained in:
Lukáš Kaňka 2023-10-15 06:01:31 +02:00
parent fc7d35d64e
commit 982e8fab3d
10 changed files with 48 additions and 27 deletions

View File

@ -1806,25 +1806,25 @@ function stopPropagation(event) {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,20482],[],[[4,0,5,[6],[1,693,19786],[[0,7,8,0,9,10,0,0,[1,694,17439],[[695,2,11]]],[0,12,8,0,13,0,0,0,[1,18134,2344],[]]]]],[],[1,1,0,0]];
window.output["suite"] = [1,2,3,4,[],[1,0,42647],[],[[5,0,6,[7],[1,461,42185],[[0,8,9,0,10,11,0,0,[1,462,22918],[[463,2,12]]],[0,13,9,0,14,15,0,0,[1,23381,254],[[23383,2,16]]],[0,17,9,0,18,19,0,0,[1,23637,16572],[[23638,2,20]]],[0,21,9,0,22,23,0,0,[1,40209,63],[[40272,2,24]]],[0,25,9,0,26,0,0,0,[1,40273,2371],[]]]]],[],[1,1,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*GoogleSearch","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\Google\\FunctionalTestSuite\\GoogleSearch.robot","*../Tests/Google/FunctionalTestSuite/GoogleSearch.robot","*This is sample test case","*<p>Google test\x3c/p>","*regression","*Open Browser","*SeleniumLibrary","*<p>Opens a new browser instance to the optional <code>url\x3c/code>.\x3c/p>","*${url}, ${browser}","*Opening browser 'chrome' to base url '<a href=\"https://www.google.com/\">https://www.google.com/\x3c/a>'.","*Close Browser","*<p>Closes the current browser.\x3c/p>"]);
window.output["strings"] = window.output["strings"].concat(["*","*BasicSearch","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\eBay\\BasicSearch.robot","*../Tests/eBay/BasicSearch.robot","*<p>Basic Search Funcianality\x3c/p>","*Verify basic search functionality foe eBay","*<p>This test case verifins the basic search\x3c/p>","*Functional","*Open Browser","*SeleniumLibrary","*<p>Opens a new browser instance to the optional <code>url\x3c/code>.\x3c/p>","*${url}, ${browser}","*Opening browser 'chrome' to base url '<a href=\"https://www.ebay.com/\">https://www.ebay.com/\x3c/a>'.","*Input Text","*<p>Types the given <code>text\x3c/code> into the text field identified by <code>locator\x3c/code>.\x3c/p>","*//*[@id=\"gh-ac\"], mobile","*Typing text 'mobile' into text field '//*[@id=\"gh-ac\"]'.","*Click Button","*<p>Clicks the button identified by <code>locator\x3c/code>.\x3c/p>","*<a href=\"xpath://*[@id=&quot;gh-btn\">xpath://*[@id=\"gh-btn\x3c/a>\"]","*Clicking button '<a href=\"xpath://*[@id=&quot;gh-btn\">xpath://*[@id=\"gh-btn\x3c/a>\"]'.","*Page Should Contain","*<p>Verifies that current page contains <code>text\x3c/code>.\x3c/p>","*výsledků mobile","*Current page contains text 'výsledků mobile'.","*Close Browser","*<p>Closes the current browser.\x3c/p>"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:20","fail":0,"label":"All Tests","pass":1,"skip":0}],[{"elapsed":"00:00:20","fail":0,"label":"regression","pass":1,"skip":0}],[{"elapsed":"00:00:20","fail":0,"id":"s1","label":"GoogleSearch","name":"GoogleSearch","pass":1,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:42","fail":0,"label":"All Tests","pass":1,"skip":0}],[{"elapsed":"00:00:42","fail":0,"label":"Functional","pass":1,"skip":0}],[{"elapsed":"00:00:43","fail":0,"id":"s1","label":"BasicSearch","name":"BasicSearch","pass":1,"skip":0}]];
</script>
<script type="text/javascript">
window.output["errors"] = [];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1697314610206;
window.output["baseMillis"] = 1697342408720;
</script>
<script type="text/javascript">
window.output["generated"] = 20499;
window.output["generated"] = 42660;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;

View File

@ -1,33 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231014 22:16:50.202" rpa="false" schemaversion="4">
<suite id="s1" name="GoogleSearch" source="C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Tests\Google\FunctionalTestSuite\GoogleSearch.robot">
<test id="s1-t1" name="This is sample test case" line="9">
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231015 06:00:08.716" rpa="false" schemaversion="4">
<suite id="s1" name="BasicSearch" source="C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Tests\eBay\BasicSearch.robot">
<test id="s1-t1" name="Verify basic search functionality foe eBay" line="10">
<kw name="Open Browser" library="SeleniumLibrary">
<arg>${url}</arg>
<arg>${browser}</arg>
<doc>Opens a new browser instance to the optional ``url``.</doc>
<msg timestamp="20231014 22:16:50.901" level="INFO">Opening browser 'chrome' to base url 'https://www.google.com/'.</msg>
<status status="PASS" starttime="20231014 22:16:50.900" endtime="20231014 22:17:08.339"/>
<msg timestamp="20231015 06:00:09.183" level="INFO">Opening browser 'chrome' to base url 'https://www.ebay.com/'.</msg>
<status status="PASS" starttime="20231015 06:00:09.182" endtime="20231015 06:00:32.100"/>
</kw>
<kw name="Input Text" library="SeleniumLibrary">
<arg>//*[@id="gh-ac"]</arg>
<arg>mobile</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20231015 06:00:32.103" level="INFO">Typing text 'mobile' into text field '//*[@id="gh-ac"]'.</msg>
<status status="PASS" starttime="20231015 06:00:32.101" endtime="20231015 06:00:32.355"/>
</kw>
<kw name="Click Button" library="SeleniumLibrary">
<arg>xpath://*[@id="gh-btn"]</arg>
<doc>Clicks the button identified by ``locator``.</doc>
<msg timestamp="20231015 06:00:32.358" level="INFO">Clicking button 'xpath://*[@id="gh-btn"]'.</msg>
<status status="PASS" starttime="20231015 06:00:32.357" endtime="20231015 06:00:48.929"/>
</kw>
<kw name="Page Should Contain" library="SeleniumLibrary">
<arg>výsledků mobile</arg>
<doc>Verifies that current page contains ``text``.</doc>
<msg timestamp="20231015 06:00:48.992" level="INFO">Current page contains text 'výsledků mobile'.</msg>
<status status="PASS" starttime="20231015 06:00:48.929" endtime="20231015 06:00:48.992"/>
</kw>
<kw name="Close Browser" library="SeleniumLibrary">
<doc>Closes the current browser.</doc>
<status status="PASS" starttime="20231014 22:17:08.340" endtime="20231014 22:17:10.684"/>
<status status="PASS" starttime="20231015 06:00:48.993" endtime="20231015 06:00:51.364"/>
</kw>
<doc>Google test</doc>
<tag>regression</tag>
<status status="PASS" starttime="20231014 22:16:50.899" endtime="20231014 22:17:10.685"/>
<doc>This test case verifins the basic search</doc>
<tag>Functional</tag>
<status status="PASS" starttime="20231015 06:00:09.181" endtime="20231015 06:00:51.366"/>
</test>
<status status="PASS" starttime="20231014 22:16:50.206" endtime="20231014 22:17:10.688"/>
<doc>Basic Search Funcianality</doc>
<status status="PASS" starttime="20231015 06:00:08.720" endtime="20231015 06:00:51.367"/>
</suite>
<statistics>
<total>
<stat pass="1" fail="0" skip="0">All Tests</stat>
</total>
<tag>
<stat pass="1" fail="0" skip="0">regression</stat>
<stat pass="1" fail="0" skip="0">Functional</stat>
</tag>
<suite>
<stat pass="1" fail="0" skip="0" id="s1" name="GoogleSearch">GoogleSearch</stat>
<stat pass="1" fail="0" skip="0" id="s1" name="BasicSearch">BasicSearch</stat>
</suite>
</statistics>
<errors>

View File

@ -1629,22 +1629,22 @@ storage = function () {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,20482],[],[[4,0,5,[6],[1,693,19786],[]]],[],[1,1,0,0]];
window.output["suite"] = [1,2,3,4,[],[1,0,42647],[],[[5,0,6,[7],[1,461,42185],[]]],[],[1,1,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*GoogleSearch","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\Google\\FunctionalTestSuite\\GoogleSearch.robot","*../Tests/Google/FunctionalTestSuite/GoogleSearch.robot","*This is sample test case","*<p>Google test\x3c/p>","*regression"]);
window.output["strings"] = window.output["strings"].concat(["*","*BasicSearch","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\eBay\\BasicSearch.robot","*../Tests/eBay/BasicSearch.robot","*<p>Basic Search Funcianality\x3c/p>","*Verify basic search functionality foe eBay","*<p>This test case verifins the basic search\x3c/p>","*Functional"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:20","fail":0,"label":"All Tests","pass":1,"skip":0}],[{"elapsed":"00:00:20","fail":0,"label":"regression","pass":1,"skip":0}],[{"elapsed":"00:00:20","fail":0,"id":"s1","label":"GoogleSearch","name":"GoogleSearch","pass":1,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:42","fail":0,"label":"All Tests","pass":1,"skip":0}],[{"elapsed":"00:00:42","fail":0,"label":"Functional","pass":1,"skip":0}],[{"elapsed":"00:00:43","fail":0,"id":"s1","label":"BasicSearch","name":"BasicSearch","pass":1,"skip":0}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1697314610206;
window.output["baseMillis"] = 1697342408720;
</script>
<script type="text/javascript">
window.output["generated"] = 20499;
window.output["generated"] = 42660;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

View File

@ -11,10 +11,11 @@ Verify basic search functionality foe eBay
[Documentation] This test case verifins the basic search
[Tags] Functional
open browser ${url} ${browser}
input text //*[@id="gh-ac"] mobile
press key //*[@id="gh-btn"] [Return]
# ověříme že se zobrzí ve filtru mobily
page should contain
open browser ${url} ${browser}
input text //*[@id="gh-ac"] mobile
click button xpath://*[@id="gh-btn"]
# ověříme že se na stránce zobrzí ve filtru mobily
page should contain výsledků mobile
close browser
*** Keywords ***