Skip to content

Commit 24af380

Browse files
committed
Updated acceptance tests. Mostly correcting expected log messages
1 parent f3643ef commit 24af380

7 files changed

Lines changed: 24 additions & 23 deletions

File tree

atest/acceptance/2-event_firing_webdriver/event_firing_webdriver.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ${event_firing_or_none} ${NONE}
1212
Open Browser To Start Page
1313
[Tags] NoGrid
1414
[Documentation]
15-
... LOG 1:37 DEBUG Wrapping driver to event_firing_webdriver.
16-
... LOG 1:39 INFO Got driver also from SeleniumLibrary.
15+
... LOG 1:20 DEBUG Wrapping driver to event_firing_webdriver.
16+
... LOG 1:22 INFO Got driver also from SeleniumLibrary.
1717
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
1818
... desired_capabilities=${DESIRED_CAPABILITIES}
1919

atest/acceptance/create_webdriver.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Library Collections
77
Create Webdriver Creates Functioning WebDriver
88
[Documentation]
99
... LOG 1:1 INFO REGEXP: Creating an instance of the \\w+ WebDriver.
10-
... LOG 1:25 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
10+
... LOG 1:8 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
1111
[Tags] Known Issue Internet Explorer Known Issue Safari
1212
[Setup] Set Driver Variables
1313
Create Webdriver ${DRIVER_NAME} kwargs=${KWARGS}

atest/acceptance/keywords/location.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Wait Until Location Is Not Fails With Timeout
112112

113113
Wait Until Location Is Not Fails With Message
114114
[Setup] Go To Page "javascript/wait_location.html"
115+
Sleep 1s # Make sure you don't check too soon
115116
${orig_timeout}= Set Selenium Timeout 2 s
116117
Run Keyword And Expect Error
117118
... my_message

atest/acceptance/keywords/page_load_timeout.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Test Teardown Close Browser And Reset Page Load Timeout
77
*** Test Cases ***
88
Should Open Browser With Default Page Load Timeout
99
[Documentation] Verify that 'Open Browser' changes the page load timeout.
10-
... LOG 1.1.1:33 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {"pageLoad": 300000}
11-
... LOG 1.1.1:35 DEBUG STARTS: Remote response: status=200
10+
... LOG 1.1.1:16 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {"pageLoad": 300000}
11+
... LOG 1.1.1:18 DEBUG STARTS: Remote response: status=200
1212
Open Browser To Start Page
1313

1414
Should Run Into Timeout Exception

atest/acceptance/keywords/screenshots_embed.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Capture Page Screenshot Override EMBED
3838
[Setup] Remove .png Files
3939
Set Screenshot Directory EMBED
4040
${file}= Capture Page Screenshot override-embed-screenshot.png
41-
Should Be Equal ${file} ${OUTPUTDIR}/override-embed-screenshot.png
42-
File Should Exist ${OUTPUTDIR}/override-embed-screenshot.png
43-
File Should Not Exist ${EXECDIR}/*.png
44-
File Should Not Exist ${EXECDIR}/EMBED/*.png
41+
Should Be Equal ${file} ${OUTPUTDIR}${/}override-embed-screenshot.png
42+
File Should Exist ${OUTPUTDIR}${/}override-embed-screenshot.png
43+
File Should Not Exist ${EXECDIR}${/}*.png
44+
File Should Not Exist ${EXECDIR}${/}EMBED${/}*.png
4545

4646
*** Keywords ***
4747
Remove .png Files

atest/acceptance/multiple_browsers_options.robot

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@ Documentation Creating test which would work on all browser is not possible.
99
*** Test Cases ***
1010
Chrome Browser With Selenium Options As String
1111
[Documentation]
12-
... LOG 1:20 DEBUG GLOB: *"goog:chromeOptions"*
13-
... LOG 1:20 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
12+
... LOG 1:3 DEBUG GLOB: *"goog:chromeOptions"*
13+
... LOG 1:3 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
1414
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
1515
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument("--disable-dev-shm-usage")
1616

1717
Chrome Browser With Selenium Options As String With Attirbute As True
1818
[Documentation]
19-
... LOG 1:20 DEBUG GLOB: *"goog:chromeOptions"*
20-
... LOG 1:20 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
21-
... LOG 1:20 DEBUG GLOB: *"--headless"*
19+
... LOG 1:3 DEBUG GLOB: *"goog:chromeOptions"*
20+
... LOG 1:3 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
21+
... LOG 1:3 DEBUG GLOB: *"--headless"*
2222
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
2323
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument ( "--disable-dev-shm-usage" ) ; headless = True
2424

2525
Chrome Browser With Selenium Options With Complex Object
2626
[Tags] NoGrid
2727
[Documentation]
28-
... LOG 1:20 DEBUG GLOB: *"goog:chromeOptions"*
29-
... LOG 1:20 DEBUG GLOB: *"mobileEmulation": {"deviceName": "Galaxy S5"*
30-
... LOG 1:20 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
28+
... LOG 1:3 DEBUG GLOB: *"goog:chromeOptions"*
29+
... LOG 1:3 DEBUG GLOB: *"mobileEmulation": {"deviceName": "Galaxy S5"*
30+
... LOG 1:3 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
3131
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
3232
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument ( "--disable-dev-shm-usage" ) ; add_experimental_option( "mobileEmulation" , { 'deviceName' : 'Galaxy S5'})
3333

3434
Chrome Browser With Selenium Options Object
3535
[Documentation]
36-
... LOG 2:20 DEBUG GLOB: *"goog:chromeOptions"*
37-
... LOG 2:20 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
36+
... LOG 2:3 DEBUG GLOB: *"goog:chromeOptions"*
37+
... LOG 2:3 DEBUG GLOB: *args": ["--disable-dev-shm-usage"?*
3838
${options} = Get Chrome Options
3939
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
4040
... desired_capabilities=${DESIRED_CAPABILITIES} options=${options}
@@ -47,7 +47,7 @@ Chrome Browser With Selenium Options Invalid Method
4747

4848
Chrome Browser With Selenium Options Argument With Semicolon
4949
[Documentation]
50-
... LOG 1:20 DEBUG GLOB: *"goog:chromeOptions"*
51-
... LOG 1:20 DEBUG GLOB: *["has;semicolon"*
50+
... LOG 1:3 DEBUG GLOB: *"goog:chromeOptions"*
51+
... LOG 1:3 DEBUG GLOB: *["has;semicolon"*
5252
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
5353
... desired_capabilities=${DESIRED_CAPABILITIES} options=add_argument("has;semicolon")

atest/acceptance/open_and_close.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Close Browser Does Nothing When No Browser Is Opened
1616

1717
Browser Open With Not Well-Formed URL Should Close
1818
[Documentation] Verify after incomplete 'Open Browser' browser closes
19-
... LOG 1.1:41 DEBUG STARTS: Opened browser with session id
20-
... LOG 1.1:41 DEBUG REGEXP: .*but failed to open url.*
19+
... LOG 1.1:24 DEBUG STARTS: Opened browser with session id
20+
... LOG 1.1:24 DEBUG REGEXP: .*but failed to open url.*
2121
... LOG 2:2 DEBUG STARTS: DELETE
2222
... LOG 2:5 DEBUG STARTS: Finished Request
2323
Run Keyword And Expect Error * Open Browser bad.url.bad ${BROWSER}

0 commit comments

Comments
 (0)