lukan test plan

This commit is contained in:
Lukáš Kaňka 2023-10-16 22:33:10 +02:00
parent 91f4037b49
commit 53f48440e9
4 changed files with 47 additions and 46 deletions

View File

@ -0,0 +1,4 @@
Otestovat menu tlačítka kliknutí
Otestovat vyhledávání
Otestovat text tlačítek (elementů)
Otestovat titulek

View File

@ -1806,25 +1806,25 @@ function stopPropagation(event) {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,4,[],[0,0,14842],[],[[5,0,6,[7],[0,259,14582,8],[[1,9,10,0,0,0,0,0,[1,260,3811],[[0,11,12,0,13,14,0,0,[1,260,3695],[[260,2,15]]],[0,16,12,0,17,0,0,0,[1,3955,115],[]]]],[0,18,19,0,0,0,0,0,[1,4071,2976],[[0,20,12,0,21,22,0,0,[1,4072,229],[[4074,2,23]]],[0,24,12,0,25,26,0,0,[1,4301,2712],[[4303,2,27],[6800,2,28],[6800,2,29]]],[0,30,12,0,31,32,0,0,[1,7013,33],[[7046,2,33]]]]],[0,34,19,0,0,0,0,0,[1,7047,5147],[[0,35,12,0,36,37,0,0,[1,7047,82],[[7047,2,38]]],[0,39,40,0,41,42,0,0,[1,7129,3001],[[10130,2,43]]],[0,35,12,0,36,44,0,0,[1,10130,2064],[[10131,2,45]]]]],[0,46,19,0,0,0,0,0,[0,12194,357],[[0,47,12,0,48,49,0,0,[0,12195,356],[[12545,2,50],[12546,5,8]]]]],[2,51,10,0,0,0,0,0,[1,12551,2290],[[0,52,12,0,53,0,0,0,[1,12552,2289],[]]]]]]],[],[1,0,1,0]];
window.output["suite"] = [1,2,3,4,[],[1,0,16546],[],[[5,0,6,[7],[1,285,16260],[[1,8,9,0,0,0,0,0,[1,286,5127],[[0,10,11,0,12,13,0,0,[1,286,5012],[[287,2,14]]],[0,15,11,0,16,0,0,0,[1,5298,115],[]]]],[0,17,18,0,0,0,0,0,[1,5414,3537],[[0,19,11,0,20,21,0,0,[1,5414,171],[[5417,2,22]]],[0,23,11,0,24,25,0,0,[1,5585,3333],[[5586,2,26],[8716,2,27],[8716,2,28]]],[0,29,11,0,30,31,0,0,[1,8918,33],[[8951,2,32]]]]],[0,33,18,0,0,0,0,0,[1,8951,5107],[[0,34,11,0,35,36,0,0,[1,8951,66],[[8953,2,37]]],[0,38,39,0,40,41,0,0,[1,9017,3001],[[12018,2,42]]],[0,34,11,0,35,43,0,0,[1,12018,2040],[[12020,2,44]]]]],[0,45,18,0,0,0,0,0,[1,14058,159],[[0,46,11,0,47,48,0,0,[1,14059,158],[[14217,2,49]]]]],[2,50,9,0,0,0,0,0,[1,14218,2327],[[0,51,11,0,52,0,0,0,[1,14218,2326],[]]]]]]],[],[1,1,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*BasicSearch2","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\eBay\\BasicSearch2.robot","*../Tests/eBay/BasicSearch2.robot","*<p>Basic Search Funcianality\x3c/p>","*Verify basic search functionality foe eBay","*<p>This test case verifins the basic search\x3c/p>","*Functional","*Element '//li[@class=\"carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied\"]' should have contained text 'Novýy' but its text was 'Nový\nOdebrat filtr'.","*Start test","*CommonFunctionality","*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>'.","*Maximize Browser Window","*<p>Maximizes current browser window.\x3c/p>","*Verify Search Results","*eBay_UserDefinedKeywords","*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\"]'.","*Press Keys","*<p>Simulates the user pressing key(s) to an element or on the active browser.\x3c/p>","*<a href=\"xpath://*[@id=&quot;gh-btn\">xpath://*[@id=\"gh-btn\x3c/a>\"], RETURN","*Sending key(s) ('RETURN',) to <a href=\"xpath://*[@id=&quot;gh-btn\">xpath://*[@id=\"gh-btn\x3c/a>\"] element.","*Pressing special key RETURN to element.","*Releasing special key RETURN.","*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'.","*Filter results by condition","*Click Element","*<p>Click the element identified by <code>locator\x3c/code>.\x3c/p>","*//span[contains(text(),\"Stav\")]","*Clicking element '//span[contains(text(),\"Stav\")]'.","*Sleep","*BuiltIn","*<p>Pauses the test executed for the given time.\x3c/p>","*3s","*Slept 3 seconds","*//span[normalize-space()=\"Nový\"]","*Clicking element '//span[normalize-space()=\"Nový\"]'.","*Verify filter results","*Element Should Contain","*<p>Verifies that element <code>locator\x3c/code> contains text <code>expected\x3c/code>.\x3c/p>","*//li[@class=\"carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied\"], Novýy","*\x3c/td>\x3c/tr><tr><td colspan=\"3\"><a href=\"selenium-screenshot-1.png\"><img src=\"selenium-screenshot-1.png\" width=\"800px\">\x3c/a>","*Finnish TestCase","*Close Browser","*<p>Closes the current browser.\x3c/p>"]);
window.output["strings"] = window.output["strings"].concat(["*","*BasicSearch2","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\eBay\\BasicSearch2.robot","*../Tests/eBay/BasicSearch2.robot","*<p>Basic Search Funcianality\x3c/p>","*Verify basic search functionality foe eBay","*<p>This test case verifins the basic search\x3c/p>","*Functional","*Start test","*CommonFunctionality","*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>'.","*Maximize Browser Window","*<p>Maximizes current browser window.\x3c/p>","*Verify Search Results","*eBay_UserDefinedKeywords","*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\"]'.","*Press Keys","*<p>Simulates the user pressing key(s) to an element or on the active browser.\x3c/p>","*<a href=\"xpath://*[@id=&quot;gh-btn\">xpath://*[@id=\"gh-btn\x3c/a>\"], RETURN","*Sending key(s) ('RETURN',) to <a href=\"xpath://*[@id=&quot;gh-btn\">xpath://*[@id=\"gh-btn\x3c/a>\"] element.","*Pressing special key RETURN to element.","*Releasing special key RETURN.","*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'.","*Filter results by condition","*Click Element","*<p>Click the element identified by <code>locator\x3c/code>.\x3c/p>","*//span[contains(text(),\"Stav\")]","*Clicking element '//span[contains(text(),\"Stav\")]'.","*Sleep","*BuiltIn","*<p>Pauses the test executed for the given time.\x3c/p>","*3s","*Slept 3 seconds","*//span[normalize-space()=\"Nový\"]","*Clicking element '//span[normalize-space()=\"Nový\"]'.","*Verify filter results","*Element Should Contain","*<p>Verifies that element <code>locator\x3c/code> contains text <code>expected\x3c/code>.\x3c/p>","*//li[@class=\"carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied\"], Nový","*Element '//li[@class=\"carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied\"]' contains text 'Nový'.","*Finnish TestCase","*Close Browser","*<p>Closes the current browser.\x3c/p>"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:15","fail":1,"label":"All Tests","pass":0,"skip":0}],[{"elapsed":"00:00:15","fail":1,"label":"Functional","pass":0,"skip":0}],[{"elapsed":"00:00:15","fail":1,"id":"s1","label":"BasicSearch2","name":"BasicSearch2","pass":0,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:16","fail":0,"label":"All Tests","pass":1,"skip":0}],[{"elapsed":"00:00:16","fail":0,"label":"Functional","pass":1,"skip":0}],[{"elapsed":"00:00:17","fail":0,"id":"s1","label":"BasicSearch2","name":"BasicSearch2","pass":1,"skip":0}]];
</script>
<script type="text/javascript">
window.output["errors"] = [];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1697484047151;
window.output["baseMillis"] = 1697487001214;
</script>
<script type="text/javascript">
window.output["generated"] = 14849;
window.output["generated"] = 16553;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;

View File

@ -1,103 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231016 21:20:47.149" rpa="false" schemaversion="4">
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231016 22:10:01.212" rpa="false" schemaversion="4">
<suite id="s1" name="BasicSearch2" source="C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Mentor\Tests\eBay\BasicSearch2.robot">
<test id="s1-t1" name="Verify basic search functionality foe eBay" line="13">
<test id="s1-t1" name="Verify basic search functionality foe eBay" line="15">
<kw name="Start test" library="CommonFunctionality" type="SETUP">
<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="20231016 21:20:47.411" level="INFO">Opening browser 'chrome' to base url 'https://www.ebay.com/'.</msg>
<status status="PASS" starttime="20231016 21:20:47.411" endtime="20231016 21:20:51.106"/>
<msg timestamp="20231016 22:10:01.501" level="INFO">Opening browser 'chrome' to base url 'https://www.ebay.com/'.</msg>
<status status="PASS" starttime="20231016 22:10:01.500" endtime="20231016 22:10:06.512"/>
</kw>
<kw name="Maximize Browser Window" library="SeleniumLibrary">
<doc>Maximizes current browser window.</doc>
<status status="PASS" starttime="20231016 21:20:51.106" endtime="20231016 21:20:51.221"/>
<status status="PASS" starttime="20231016 22:10:06.512" endtime="20231016 22:10:06.627"/>
</kw>
<status status="PASS" starttime="20231016 21:20:47.411" endtime="20231016 21:20:51.222"/>
<status status="PASS" starttime="20231016 22:10:01.500" endtime="20231016 22:10:06.627"/>
</kw>
<kw name="Verify Search Results" library="eBay_UserDefinedKeywords">
<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="20231016 21:20:51.225" level="INFO">Typing text 'mobile' into text field '//*[@id="gh-ac"]'.</msg>
<status status="PASS" starttime="20231016 21:20:51.223" endtime="20231016 21:20:51.452"/>
<msg timestamp="20231016 22:10:06.631" level="INFO">Typing text 'mobile' into text field '//*[@id="gh-ac"]'.</msg>
<status status="PASS" starttime="20231016 22:10:06.628" endtime="20231016 22:10:06.799"/>
</kw>
<kw name="Press Keys" library="SeleniumLibrary">
<arg>xpath://*[@id="gh-btn"]</arg>
<arg>RETURN</arg>
<doc>Simulates the user pressing key(s) to an element or on the active browser.</doc>
<msg timestamp="20231016 21:20:51.454" level="INFO">Sending key(s) ('RETURN',) to xpath://*[@id="gh-btn"] element.</msg>
<msg timestamp="20231016 21:20:53.951" level="INFO">Pressing special key RETURN to element.</msg>
<msg timestamp="20231016 21:20:53.951" level="INFO">Releasing special key RETURN.</msg>
<status status="PASS" starttime="20231016 21:20:51.452" endtime="20231016 21:20:54.164"/>
<msg timestamp="20231016 22:10:06.800" level="INFO">Sending key(s) ('RETURN',) to xpath://*[@id="gh-btn"] element.</msg>
<msg timestamp="20231016 22:10:09.930" level="INFO">Pressing special key RETURN to element.</msg>
<msg timestamp="20231016 22:10:09.930" level="INFO">Releasing special key RETURN.</msg>
<status status="PASS" starttime="20231016 22:10:06.799" endtime="20231016 22:10:10.132"/>
</kw>
<kw name="Page Should Contain" library="SeleniumLibrary">
<arg>výsledků mobile</arg>
<doc>Verifies that current page contains ``text``.</doc>
<msg timestamp="20231016 21:20:54.197" level="INFO">Current page contains text 'výsledků mobile'.</msg>
<status status="PASS" starttime="20231016 21:20:54.164" endtime="20231016 21:20:54.197"/>
<msg timestamp="20231016 22:10:10.165" level="INFO">Current page contains text 'výsledků mobile'.</msg>
<status status="PASS" starttime="20231016 22:10:10.132" endtime="20231016 22:10:10.165"/>
</kw>
<status status="PASS" starttime="20231016 21:20:51.222" endtime="20231016 21:20:54.198"/>
<status status="PASS" starttime="20231016 22:10:06.628" endtime="20231016 22:10:10.165"/>
</kw>
<kw name="Filter results by condition" library="eBay_UserDefinedKeywords">
<kw name="Click Element" library="SeleniumLibrary">
<arg>//span[contains(text(),"Stav")]</arg>
<doc>Click the element identified by ``locator``.</doc>
<msg timestamp="20231016 21:20:54.198" level="INFO">Clicking element '//span[contains(text(),"Stav")]'.</msg>
<status status="PASS" starttime="20231016 21:20:54.198" endtime="20231016 21:20:54.280"/>
<msg timestamp="20231016 22:10:10.167" level="INFO">Clicking element '//span[contains(text(),"Stav")]'.</msg>
<status status="PASS" starttime="20231016 22:10:10.165" endtime="20231016 22:10:10.231"/>
</kw>
<kw name="Sleep" library="BuiltIn">
<arg>3s</arg>
<doc>Pauses the test executed for the given time.</doc>
<msg timestamp="20231016 21:20:57.281" level="INFO">Slept 3 seconds</msg>
<status status="PASS" starttime="20231016 21:20:54.280" endtime="20231016 21:20:57.281"/>
<msg timestamp="20231016 22:10:13.232" level="INFO">Slept 3 seconds</msg>
<status status="PASS" starttime="20231016 22:10:10.231" endtime="20231016 22:10:13.232"/>
</kw>
<kw name="Click Element" library="SeleniumLibrary">
<arg>//span[normalize-space()="Nový"]</arg>
<doc>Click the element identified by ``locator``.</doc>
<msg timestamp="20231016 21:20:57.282" level="INFO">Clicking element '//span[normalize-space()="Nový"]'.</msg>
<status status="PASS" starttime="20231016 21:20:57.281" endtime="20231016 21:20:59.345"/>
<msg timestamp="20231016 22:10:13.234" level="INFO">Clicking element '//span[normalize-space()="Nový"]'.</msg>
<status status="PASS" starttime="20231016 22:10:13.232" endtime="20231016 22:10:15.272"/>
</kw>
<status status="PASS" starttime="20231016 21:20:54.198" endtime="20231016 21:20:59.345"/>
<status status="PASS" starttime="20231016 22:10:10.165" endtime="20231016 22:10:15.272"/>
</kw>
<kw name="Verify filter results" library="eBay_UserDefinedKeywords">
<kw name="Element Should Contain" library="SeleniumLibrary">
<arg>//li[@class="carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied"]</arg>
<arg>Novýy</arg>
<arg>Nový</arg>
<doc>Verifies that element ``locator`` contains text ``expected``.</doc>
<msg timestamp="20231016 21:20:59.696" level="INFO" html="true">&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3"&gt;&lt;a href="selenium-screenshot-1.png"&gt;&lt;img src="selenium-screenshot-1.png" width="800px"&gt;&lt;/a&gt;</msg>
<msg timestamp="20231016 21:20:59.697" level="FAIL">Element '//li[@class="carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied"]' should have contained text 'Novýy' but its text was 'Nový
Odebrat filtr'.</msg>
<status status="FAIL" starttime="20231016 21:20:59.346" endtime="20231016 21:20:59.702"/>
<msg timestamp="20231016 22:10:15.431" level="INFO">Element '//li[@class="carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied"]' contains text 'Nový'.</msg>
<status status="PASS" starttime="20231016 22:10:15.273" endtime="20231016 22:10:15.431"/>
</kw>
<status status="FAIL" starttime="20231016 21:20:59.345" endtime="20231016 21:20:59.702"/>
<status status="PASS" starttime="20231016 22:10:15.272" endtime="20231016 22:10:15.431"/>
</kw>
<kw name="Finnish TestCase" library="CommonFunctionality" type="TEARDOWN">
<kw name="Close Browser" library="SeleniumLibrary">
<doc>Closes the current browser.</doc>
<status status="PASS" starttime="20231016 21:20:59.703" endtime="20231016 21:21:01.992"/>
<status status="PASS" starttime="20231016 22:10:15.432" endtime="20231016 22:10:17.758"/>
</kw>
<status status="PASS" starttime="20231016 21:20:59.702" endtime="20231016 21:21:01.992"/>
<status status="PASS" starttime="20231016 22:10:15.432" endtime="20231016 22:10:17.759"/>
</kw>
<doc>This test case verifins the basic search</doc>
<tag>Functional</tag>
<status status="FAIL" starttime="20231016 21:20:47.410" endtime="20231016 21:21:01.992">Element '//li[@class="carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied"]' should have contained text 'Novýy' but its text was 'Nový
Odebrat filtr'.</status>
<status status="PASS" starttime="20231016 22:10:01.499" endtime="20231016 22:10:17.759"/>
</test>
<doc>Basic Search Funcianality</doc>
<status status="FAIL" starttime="20231016 21:20:47.151" endtime="20231016 21:21:01.993"/>
<status status="PASS" starttime="20231016 22:10:01.214" endtime="20231016 22:10:17.760"/>
</suite>
<statistics>
<total>
<stat pass="0" fail="1" skip="0">All Tests</stat>
<stat pass="1" fail="0" skip="0">All Tests</stat>
</total>
<tag>
<stat pass="0" fail="1" skip="0">Functional</stat>
<stat pass="1" fail="0" skip="0">Functional</stat>
</tag>
<suite>
<stat pass="0" fail="1" skip="0" id="s1" name="BasicSearch2">BasicSearch2</stat>
<stat pass="1" fail="0" skip="0" id="s1" name="BasicSearch2">BasicSearch2</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,4,[],[0,0,14842],[],[[5,0,6,[7],[0,259,14582,8],[]]],[],[1,0,1,0]];
window.output["suite"] = [1,2,3,4,[],[1,0,16546],[],[[5,0,6,[7],[1,285,16260],[]]],[],[1,1,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*BasicSearch2","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\eBay\\BasicSearch2.robot","*../Tests/eBay/BasicSearch2.robot","*<p>Basic Search Funcianality\x3c/p>","*Verify basic search functionality foe eBay","*<p>This test case verifins the basic search\x3c/p>","*Functional","*Element '//li[@class=\"carousel__snap-point srp-carousel-list__item srp-multi-aspect__item--applied\"]' should have contained text 'Novýy' but its text was 'Nový\nOdebrat filtr'."]);
window.output["strings"] = window.output["strings"].concat(["*","*BasicSearch2","*C:\\Users\\lukas\\Mega\\Data\\GitHub\\Robot_Framework\\RobotSelenium\\Mentor\\Tests\\eBay\\BasicSearch2.robot","*../Tests/eBay/BasicSearch2.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:15","fail":1,"label":"All Tests","pass":0,"skip":0}],[{"elapsed":"00:00:15","fail":1,"label":"Functional","pass":0,"skip":0}],[{"elapsed":"00:00:15","fail":1,"id":"s1","label":"BasicSearch2","name":"BasicSearch2","pass":0,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:16","fail":0,"label":"All Tests","pass":1,"skip":0}],[{"elapsed":"00:00:16","fail":0,"label":"Functional","pass":1,"skip":0}],[{"elapsed":"00:00:17","fail":0,"id":"s1","label":"BasicSearch2","name":"BasicSearch2","pass":1,"skip":0}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1697484047151;
window.output["baseMillis"] = 1697487001214;
</script>
<script type="text/javascript">
window.output["generated"] = 14849;
window.output["generated"] = 16553;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;