first test
This commit is contained in:
parent
320c8b1b84
commit
f0d30941ed
3
RobotSelenium/Techie/.idea/.gitignore
vendored
Normal file
3
RobotSelenium/Techie/.idea/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
10
RobotSelenium/Techie/.idea/Techie.iml
Normal file
10
RobotSelenium/Techie/.idea/Techie.iml
Normal 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>
|
@ -0,0 +1,6 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
4
RobotSelenium/Techie/.idea/misc.xml
Normal file
4
RobotSelenium/Techie/.idea/misc.xml
Normal 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 (Techie)" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
8
RobotSelenium/Techie/.idea/modules.xml
Normal file
8
RobotSelenium/Techie/.idea/modules.xml
Normal 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/Techie.iml" filepath="$PROJECT_DIR$/.idea/Techie.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
RobotSelenium/Techie/.idea/vcs.xml
Normal file
6
RobotSelenium/Techie/.idea/vcs.xml
Normal 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>
|
17
RobotSelenium/Techie/TestCases/TC1.robot
Normal file
17
RobotSelenium/Techie/TestCases/TC1.robot
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library SeleniumLibrary
|
||||||
|
|
||||||
|
*** Variables ***
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
LoginTest
|
||||||
|
open browser https://demo.nopcommerce.com/ chrome
|
||||||
|
click link xpath://a[@class="ico-login"]
|
||||||
|
input text id:Email testing@gmail.com
|
||||||
|
input text id:Password Test@123
|
||||||
|
click element xpath://input[@class='button-1 Login-button']
|
||||||
|
close browser
|
||||||
|
|
||||||
|
*** Keywords ***
|
2199
RobotSelenium/Techie/log.html
Normal file
2199
RobotSelenium/Techie/log.html
Normal file
File diff suppressed because one or more lines are too long
55
RobotSelenium/Techie/output.xml
Normal file
55
RobotSelenium/Techie/output.xml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231013 14:31:14.425" rpa="false" schemaversion="4">
|
||||||
|
<suite id="s1" name="TC1" source="C:\Users\lukas\Mega\Data\GitHub\Robot_Framework\RobotSelenium\Techie\TestCases\TC1.robot">
|
||||||
|
<test id="s1-t1" name="LoginTest" line="9">
|
||||||
|
<kw name="Open Browser" library="SeleniumLibrary">
|
||||||
|
<arg>https://demo.nopcommerce.com/</arg>
|
||||||
|
<arg>chrome</arg>
|
||||||
|
<doc>Opens a new browser instance to the optional ``url``.</doc>
|
||||||
|
<msg timestamp="20231013 14:31:14.610" level="INFO">Opening browser 'chrome' to base url 'https://demo.nopcommerce.com/'.</msg>
|
||||||
|
<status status="PASS" starttime="20231013 14:31:14.609" endtime="20231013 14:31:17.177"/>
|
||||||
|
</kw>
|
||||||
|
<kw name="Click Link" library="SeleniumLibrary">
|
||||||
|
<arg>xpath://a[@class="ico-login"]</arg>
|
||||||
|
<doc>Clicks a link identified by ``locator``.</doc>
|
||||||
|
<msg timestamp="20231013 14:31:17.179" level="INFO">Clicking link 'xpath://a[@class="ico-login"]'.</msg>
|
||||||
|
<msg timestamp="20231013 14:31:17.348" level="INFO" html="true"></td></tr><tr><td colspan="3"><a href="selenium-screenshot-4.png"><img src="selenium-screenshot-4.png" width="800px"></a></msg>
|
||||||
|
<msg timestamp="20231013 14:31:17.348" level="FAIL">Link with locator 'xpath://a[@class="ico-login"]' not found.</msg>
|
||||||
|
<status status="FAIL" starttime="20231013 14:31:17.178" endtime="20231013 14:31:17.351"/>
|
||||||
|
</kw>
|
||||||
|
<kw name="Input Text" library="SeleniumLibrary">
|
||||||
|
<arg>id:Email testing@gmail.com</arg>
|
||||||
|
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
|
||||||
|
<status status="NOT RUN" starttime="20231013 14:31:17.352" endtime="20231013 14:31:17.352"/>
|
||||||
|
</kw>
|
||||||
|
<kw name="Input Text" library="SeleniumLibrary">
|
||||||
|
<arg>id:Password Test@123</arg>
|
||||||
|
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
|
||||||
|
<status status="NOT RUN" starttime="20231013 14:31:17.352" endtime="20231013 14:31:17.352"/>
|
||||||
|
</kw>
|
||||||
|
<kw name="Click Element" library="SeleniumLibrary">
|
||||||
|
<arg>xpath://input[@class='button-1 Login-button']</arg>
|
||||||
|
<doc>Click the element identified by ``locator``.</doc>
|
||||||
|
<status status="NOT RUN" starttime="20231013 14:31:17.352" endtime="20231013 14:31:17.352"/>
|
||||||
|
</kw>
|
||||||
|
<kw name="Close Browser" library="SeleniumLibrary">
|
||||||
|
<doc>Closes the current browser.</doc>
|
||||||
|
<status status="NOT RUN" starttime="20231013 14:31:17.353" endtime="20231013 14:31:17.353"/>
|
||||||
|
</kw>
|
||||||
|
<status status="FAIL" starttime="20231013 14:31:14.608" endtime="20231013 14:31:17.353">Link with locator 'xpath://a[@class="ico-login"]' not found.</status>
|
||||||
|
</test>
|
||||||
|
<status status="FAIL" starttime="20231013 14:31:14.427" endtime="20231013 14:31:17.354"/>
|
||||||
|
</suite>
|
||||||
|
<statistics>
|
||||||
|
<total>
|
||||||
|
<stat pass="0" fail="1" skip="0">All Tests</stat>
|
||||||
|
</total>
|
||||||
|
<tag>
|
||||||
|
</tag>
|
||||||
|
<suite>
|
||||||
|
<stat pass="0" fail="1" skip="0" id="s1" name="TC1">TC1</stat>
|
||||||
|
</suite>
|
||||||
|
</statistics>
|
||||||
|
<errors>
|
||||||
|
</errors>
|
||||||
|
</robot>
|
2462
RobotSelenium/Techie/report.html
Normal file
2462
RobotSelenium/Techie/report.html
Normal file
File diff suppressed because one or more lines are too long
BIN
RobotSelenium/Techie/selenium-screenshot-1.png
Normal file
BIN
RobotSelenium/Techie/selenium-screenshot-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
BIN
RobotSelenium/Techie/selenium-screenshot-2.png
Normal file
BIN
RobotSelenium/Techie/selenium-screenshot-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
BIN
RobotSelenium/Techie/selenium-screenshot-3.png
Normal file
BIN
RobotSelenium/Techie/selenium-screenshot-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
BIN
RobotSelenium/Techie/selenium-screenshot-4.png
Normal file
BIN
RobotSelenium/Techie/selenium-screenshot-4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
Loading…
Reference in New Issue
Block a user