Test Google

This commit is contained in:
Lukáš Kaňka
2023-10-14 09:28:27 +02:00
parent f0d30941ed
commit bb725fcd4c
20 changed files with 4864 additions and 41 deletions

3
RobotSelenium/Mentor/.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

10
RobotSelenium/Mentor/.idea/Mentor.iml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
RobotSelenium/Mentor/.idea/misc.xml generated Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (Mentor)" project-jdk-type="Python SDK" />
</project>

8
RobotSelenium/Mentor/.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Mentor.iml" filepath="$PROJECT_DIR$/.idea/Mentor.iml" />
</modules>
</component>
</project>

6
RobotSelenium/Mentor/.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231014 00:31:29.419" 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">
<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 00:31:29.915" level="INFO">Opening browser 'chrome' to base url 'https://www.google.com/'.</msg>
<status status="PASS" starttime="20231014 00:31:29.915" endtime="20231014 00:31:35.834"/>
</kw>
<kw name="Close Browser" library="SeleniumLibrary">
<doc>Closes the current browser.</doc>
<status status="PASS" starttime="20231014 00:31:35.835" endtime="20231014 00:31:38.141"/>
</kw>
<doc>Google test</doc>
<tag>regression</tag>
<status status="PASS" starttime="20231014 00:31:29.912" endtime="20231014 00:31:38.143"/>
</test>
<status status="PASS" starttime="20231014 00:31:29.427" endtime="20231014 00:31:38.145"/>
</suite>
<statistics>
<total>
<stat pass="1" fail="0" skip="0">All Tests</stat>
</total>
<tag>
<stat pass="1" fail="0" skip="0">regression</stat>
</tag>
<suite>
<stat pass="1" fail="0" skip="0" id="s1" name="GoogleSearch">GoogleSearch</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,15 @@
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${browser} chrome
${url} https://www.google.com/
*** Test Cases ***
This is sample test case
[documentation] Google test
[tags] regression
open browser ${url} ${browser}
close browser
*** Keywords ***
# pro slova můžem vytvořit samostatný soubor