Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kubetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ConduitMiau
kubetest
Commits
4aec89ef
Commit
4aec89ef
authored
3 years ago
by
M9713
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
11114894
No related branches found
No related tags found
No related merge requests found
Pipeline
#539430
canceled
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test.robot
+70
-0
70 additions, 0 deletions
test.robot
with
70 additions
and
0 deletions
test.robot
0 → 100644
+
70
−
0
View file @
4aec89ef
*** Settings ***
Library
SeleniumLibrary
Library
Process
Library
OperatingSystem
*** Keywords ***
Start Chrome
${chrome_options}
=
Evaluate
sys.modules['selenium.webdriver'].ChromeOptions()
sys, selenium.webdriver
Call Method
${chrome_options}
add_argument
--no-sandbox
Create Webdriver
Chrome
chrome_options=
${chrome_options}
*** Test Cases ***
Test Firefox
Open Browser
http://google.com
Firefox
Title Should Be
Google
Close Browser
Test Chrome
Start Chrome
Go To
http://www.google.com
Title Should Be
Google
Close Browser
Ping test
${result}
=
Run Process
ping 127.0.0.1 -c 1
shell=True
Should Contain
${result.stdout}
64 bytes from 127.0.0.1:
*** Test Case ***
Aikataulut
Start Chrome
Go To
https://www.matkahuolto.fi/
Maximize Browser Window
title should be
Etusivu - Matkahuolto
#sleep 5
#Click Element //input[@placeholder='Hae']
#Input Text //input[@placeholder='Hae'] Helsinki
click element
//button[normalize-space()='Hyväksy evästeet']
click element
//a[normalize-space()='Hae aikatauluja']
sleep
5
click element
//h1[normalize-space()='Osta liput - hae aikataulut']
press keys
xpath=//body
TAB
#click element //input[@id='27a2e0bc-b8fa-462c-92c9-6678278726fe-dep']
press keys
none
h+e+l+s+i+n+k+i+TAB
sleep
2
sleep
2
press keys
none
T+a+m+p+e+r+e+TAB+TAB+TAB+TAB
#Input Text //input[@id='477baa88-ed7f-4f3b-d646-faebc05ca97a-dep'] Helsinki
sleep
2
click element
//button[normalize-space()='Hae aikatauluja']
sleep
5
#click element //input[@id='477baa88-ed7f-4f3b-d646-faebc05ca97a-arr']
#Input text //input[@id='477baa88-ed7f-4f3b-d646-faebc05ca97a-arr'] Tampere
${get text}
get text
//div[@data-select-connection-callback='selectConnection(theConnection)']
Log To Console
${get text}
#Append to file testi1.csv ${get text}
Close Browser
#END
#${get_text} Get WebElements ${NAVIGATION}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment