Add delay between test

This commit is contained in:
Athicha Leksansern 2025-07-24 18:08:09 +07:00
parent 3689e6b91a
commit 3c5ccd85b3
4 changed files with 24 additions and 17 deletions

View File

@ -2074,25 +2074,25 @@ storage = function () {
window.output = {}; window.output = {};
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,1060],[[4,5,6,0,[],[1,6,1054],[],[[7,0,8,[],[1,63,997],[[0,9,10,0,11,12,0,0,[1,63,718],[[64,2,13]]],[0,14,10,0,15,16,0,0,[1,782,7],[]],[0,17,10,0,18,19,0,0,[1,789,270],[]]]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]; window.output["suite"] = [1,2,3,0,[],[1,0,2463],[[4,5,6,0,[],[1,6,2457],[],[[7,0,8,[],[1,67,2395],[[0,9,10,0,11,12,0,0,[1,67,1079],[[67,2,13]]],[0,14,10,0,15,16,0,0,[1,1147,14],[]],[0,17,18,0,19,20,0,0,[1,1161,1002],[[2163,2,21]]],[0,22,10,0,23,24,0,0,[1,2163,298],[]]]]],[],[1,1,0,0]]],[],[],[1,1,0,0]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["strings"] = []; window.output["strings"] = [];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*Tests","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests","*../tests","*000-Scroll-to-bottom-of-tile0","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests/000-Scroll-to-bottom-of-tile0.robot","*../tests/000-Scroll-to-bottom-of-tile0.robot","*Scroll to bottom of tile0","*<p>Scrolls to the bottom of tile0 and verifies the presence of a button.\x3c/p>","*Open Browser","*SeleniumLibrary","*<p>Opens a new browser instance to the optional <code>url\x3c/code>.\x3c/p>","*url=${BASE_URL}/ browser=${BROWSER}","*Opening browser 'Chrome' to base url '<a href=\"http://localhost:5173/\">http://localhost:5173/\x3c/a>'.","*Wait Until Page Contains","*<p>Waits until <code>text\x3c/code> appears on the current page.\x3c/p>","*robotframework demo","*Scroll Element Into View","*<p>Scrolls the element identified by <code>locator\x3c/code> into view.\x3c/p>","*css:div#tile-0 button.target"]); window.output["strings"] = window.output["strings"].concat(["*","*Tests","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests","*../tests","*000-Scroll-to-bottom-of-tile0","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests/000-Scroll-to-bottom-of-tile0.robot","*../tests/000-Scroll-to-bottom-of-tile0.robot","*Scroll to bottom of tile0","*<p>Scrolls to the bottom of tile0 and verifies the presence of a button.\x3c/p>","*Open Browser","*SeleniumLibrary","*<p>Opens a new browser instance to the optional <code>url\x3c/code>.\x3c/p>","*url=${BASE_URL}/ browser=${BROWSER}","*Opening browser 'Chrome' to base url '<a href=\"http://localhost:5173/\">http://localhost:5173/\x3c/a>'.","*Wait Until Page Contains","*<p>Waits until <code>text\x3c/code> appears on the current page.\x3c/p>","*robotframework demo","*Sleep","*BuiltIn","*<p>Pauses the test executed for the given time.\x3c/p>","*1s","*Slept 1 second.","*Scroll Element Into View","*<p>Scrolls the element identified by <code>locator\x3c/code> into view.\x3c/p>","*css:div#tile-0 button.target"]);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:01","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"Tests","name":"Tests","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Tests.000-Scroll-to-bottom-of-tile0","name":"000-Scroll-to-bottom-of-tile0","pass":1,"skip":0}]]; window.output["stats"] = [[{"elapsed":"00:00:02","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:02","fail":0,"id":"s1","label":"Tests","name":"Tests","pass":1,"skip":0},{"elapsed":"00:00:02","fail":0,"id":"s1-s1","label":"Tests.000-Scroll-to-bottom-of-tile0","name":"000-Scroll-to-bottom-of-tile0","pass":1,"skip":0}]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["errors"] = []; window.output["errors"] = [];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["baseMillis"] = 1753355029556; window.output["baseMillis"] = 1753355218851;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["generated"] = 1064; window.output["generated"] = 2468;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["expand_keywords"] = null; window.output["expand_keywords"] = null;

View File

@ -1,31 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 7.3.2 (Python 3.13.5 on darwin)" generated="2025-07-24T18:03:49.555816" rpa="false" schemaversion="5"> <robot generator="Robot 7.3.2 (Python 3.13.5 on darwin)" generated="2025-07-24T18:06:58.850180" rpa="false" schemaversion="5">
<suite id="s1" name="Tests" source="/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests"> <suite id="s1" name="Tests" source="/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests">
<suite id="s1-s1" name="000-Scroll-to-bottom-of-tile0" source="/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests/000-Scroll-to-bottom-of-tile0.robot"> <suite id="s1-s1" name="000-Scroll-to-bottom-of-tile0" source="/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests/000-Scroll-to-bottom-of-tile0.robot">
<test id="s1-s1-t1" name="Scroll to bottom of tile0" line="7"> <test id="s1-s1-t1" name="Scroll to bottom of tile0" line="7">
<kw name="Open Browser" owner="SeleniumLibrary"> <kw name="Open Browser" owner="SeleniumLibrary">
<msg time="2025-07-24T18:03:49.619590" level="INFO">Opening browser 'Chrome' to base url 'http://localhost:5173/'.</msg> <msg time="2025-07-24T18:06:58.918265" level="INFO">Opening browser 'Chrome' to base url 'http://localhost:5173/'.</msg>
<arg>url=${BASE_URL}/</arg> <arg>url=${BASE_URL}/</arg>
<arg>browser=${BROWSER}</arg> <arg>browser=${BROWSER}</arg>
<doc>Opens a new browser instance to the optional ``url``.</doc> <doc>Opens a new browser instance to the optional ``url``.</doc>
<status status="PASS" start="2025-07-24T18:03:49.619448" elapsed="0.718474"/> <status status="PASS" start="2025-07-24T18:06:58.918121" elapsed="1.079427"/>
</kw> </kw>
<kw name="Wait Until Page Contains" owner="SeleniumLibrary"> <kw name="Wait Until Page Contains" owner="SeleniumLibrary">
<arg>robotframework demo</arg> <arg>robotframework demo</arg>
<doc>Waits until ``text`` appears on the current page.</doc> <doc>Waits until ``text`` appears on the current page.</doc>
<status status="PASS" start="2025-07-24T18:03:50.338257" elapsed="0.006643"/> <status status="PASS" start="2025-07-24T18:06:59.998091" elapsed="0.013706"/>
</kw>
<kw name="Sleep" owner="BuiltIn">
<msg time="2025-07-24T18:07:01.013522" level="INFO">Slept 1 second.</msg>
<arg>1s</arg>
<doc>Pauses the test executed for the given time.</doc>
<status status="PASS" start="2025-07-24T18:07:00.011957" elapsed="1.001910"/>
</kw> </kw>
<kw name="Scroll Element Into View" owner="SeleniumLibrary"> <kw name="Scroll Element Into View" owner="SeleniumLibrary">
<arg>css:div#tile-0 button.target</arg> <arg>css:div#tile-0 button.target</arg>
<doc>Scrolls the element identified by ``locator`` into view.</doc> <doc>Scrolls the element identified by ``locator`` into view.</doc>
<status status="PASS" start="2025-07-24T18:03:50.345295" elapsed="0.269960"/> <status status="PASS" start="2025-07-24T18:07:01.014422" elapsed="0.297988"/>
</kw> </kw>
<doc>Scrolls to the bottom of tile0 and verifies the presence of a button.</doc> <doc>Scrolls to the bottom of tile0 and verifies the presence of a button.</doc>
<status status="PASS" start="2025-07-24T18:03:49.619065" elapsed="0.996554"/> <status status="PASS" start="2025-07-24T18:06:58.917741" elapsed="2.395078"/>
</test> </test>
<status status="PASS" start="2025-07-24T18:03:49.562199" elapsed="1.054012"/> <status status="PASS" start="2025-07-24T18:06:58.856973" elapsed="2.456567"/>
</suite> </suite>
<status status="PASS" start="2025-07-24T18:03:49.556302" elapsed="1.060433"/> <status status="PASS" start="2025-07-24T18:06:58.850836" elapsed="2.463308"/>
</suite> </suite>
<statistics> <statistics>
<total> <total>

View File

@ -1887,7 +1887,7 @@ storage = function () {
window.output = {}; window.output = {};
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,1060],[[4,5,6,0,[],[1,6,1054],[],[[7,0,8,[],[1,63,997],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]; window.output["suite"] = [1,2,3,0,[],[1,0,2463],[[4,5,6,0,[],[1,6,2457],[],[[7,0,8,[],[1,67,2395],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["strings"] = []; window.output["strings"] = [];
@ -1896,13 +1896,13 @@ window.output["strings"] = [];
window.output["strings"] = window.output["strings"].concat(["*","*Tests","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests","*../tests","*000-Scroll-to-bottom-of-tile0","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests/000-Scroll-to-bottom-of-tile0.robot","*../tests/000-Scroll-to-bottom-of-tile0.robot","*Scroll to bottom of tile0","*<p>Scrolls to the bottom of tile0 and verifies the presence of a button.\x3c/p>"]); window.output["strings"] = window.output["strings"].concat(["*","*Tests","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests","*../tests","*000-Scroll-to-bottom-of-tile0","*/Users/tonkaew131/Developer/Web/ellely-robot-framework/tests/tests/000-Scroll-to-bottom-of-tile0.robot","*../tests/000-Scroll-to-bottom-of-tile0.robot","*Scroll to bottom of tile0","*<p>Scrolls to the bottom of tile0 and verifies the presence of a button.\x3c/p>"]);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:01","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"Tests","name":"Tests","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Tests.000-Scroll-to-bottom-of-tile0","name":"000-Scroll-to-bottom-of-tile0","pass":1,"skip":0}]]; window.output["stats"] = [[{"elapsed":"00:00:02","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:02","fail":0,"id":"s1","label":"Tests","name":"Tests","pass":1,"skip":0},{"elapsed":"00:00:02","fail":0,"id":"s1-s1","label":"Tests.000-Scroll-to-bottom-of-tile0","name":"000-Scroll-to-bottom-of-tile0","pass":1,"skip":0}]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["baseMillis"] = 1753355029556; window.output["baseMillis"] = 1753355218851;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["generated"] = 1064; window.output["generated"] = 2468;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["expand_keywords"] = null; window.output["expand_keywords"] = null;

View File

@ -9,6 +9,7 @@ Scroll to bottom of tile0
Open Browser url=${BASE_URL}/ browser=${BROWSER} Open Browser url=${BASE_URL}/ browser=${BROWSER}
Wait Until Page Contains robotframework demo Wait Until Page Contains robotframework demo
Sleep 1s
Scroll Element Into View css:div#tile-0 button.target Scroll Element Into View css:div#tile-0 button.target
# Close Browser # Close Browser