Skip to content

Commit

Permalink
Merge branch 'master' into issue-1768
Browse files Browse the repository at this point in the history
  • Loading branch information
emanlove committed Apr 27, 2023
2 parents a79b35d + e7f3b1d commit 6d908e1
Show file tree
Hide file tree
Showing 19 changed files with 204 additions and 347 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ${event_firing_or_none} ${NONE}
Open Browser To Start Page
[Tags] NoGrid
[Documentation]
... LOG 1:16 DEBUG Wrapping driver to event_firing_webdriver.
... LOG 1:18 INFO Got driver also from SeleniumLibrary.
... LOG 1:20 DEBUG Wrapping driver to event_firing_webdriver.
... LOG 1:22 INFO Got driver also from SeleniumLibrary.
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
... desired_capabilities=${DESIRED_CAPABILITIES}

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion atest/acceptance/keywords/__init__.robot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*** Settings ***
Resource ../resource.robot
Suite Setup Open Browser To Start Page
Suite Setup Open Browser To Start Page keywords
Suite Teardown Close All Browsers
2 changes: 1 addition & 1 deletion atest/acceptance/keywords/click_element.robot
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Click Element Action Chain
[Tags] NoGrid
[Documentation]
... LOB 1:1 INFO Clicking 'singleClickButton' using an action chain.
... LOG 1:7 DEBUG GLOB: *actions {"actions": [{*
... LOG 1:6 DEBUG GLOB: *actions {"actions": [{*
Click Element singleClickButton action_chain=True
Element Text Should Be output single clicked

Expand Down
48 changes: 46 additions & 2 deletions atest/acceptance/keywords/content_assertions.robot
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ Page Should Contain
Page Should Contain This is the haystack
Page Should Contain non existing text

Page Should Contain Using Default Custom Log Level
[Tags] NoGrid
[Documentation] The Page Should Contains using default custom log level (that being
... 'TRACE' - noting the excluded second argument for the `Page Should Contain`
... keyword) fails and the log contains the html content.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 2:19 TRACE REGEXP: (?i)<html.*</html>
... LOG 2:20 FAIL Page should have contained text 'non existing text' but did not.
${old_level}= Set Log Level TRACE
Page Should Contain non existing text
[Teardown] Set Log Level ${old_level}

Page Should Contain Numbers And String Should Be Same
Log Source
Page Should Contain 1
Expand All @@ -37,24 +49,56 @@ Page Should Contain With Text Having Internal Elements
Go to page "links.html"
Page Should Contain Relative with text after

Page Should Contain With Custom Log Level INFO
[Tags] NoGrid
[Documentation] Html content is shown at the explicitly specified INFO level.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 1:18 INFO REGEXP: (?i)<html.*</html>
... LOG 1:19 FAIL Page should have contained text 'non existing text' but did not.
Page Should Contain non existing text INFO

Page Should Contain With Custom Log Level WARN
[Tags] NoGrid
[Documentation] Html content is shown at the explicitly specified WARN level.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 1:18 WARN REGEXP: (?i)<html.*</html>
... LOG 1:19 FAIL Page should have contained text 'non existing text' but did not.
Page Should Contain non existing text WARN

Page Should Contain With Custom Log Level DEBUG
[Tags] NoGrid
[Documentation] Html content is shown at DEBUG level.
[Documentation] Html content is shown at the explicitly specified DEBUG level.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 1:18 DEBUG REGEXP: (?i)<html.*</html>
... LOG 1:19 FAIL Page should have contained text 'non existing text' but did not.
Page Should Contain non existing text DEBUG

Page Should Contain With Custom Log Level TRACE
[Tags] NoGrid
[Documentation] Html content is shown at DEBUG level.
[Documentation] Html content is shown at the explicitly specified TRACE level.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 2:19 TRACE REGEXP: (?i)<html.*</html>
... LOG 2:20 FAIL Page should have contained text 'non existing text' but did not.
Set Log Level TRACE
Page Should Contain non existing text TRACE
[Teardown] Set Log Level DEBUG

Page Should Contain With Custom Log Level NONE
[Tags] NoGrid
[Documentation] Html content is not shown because the loglevel is set to NONE.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 1:18 FAIL Page should have contained text 'non existing text' but did not.
Page Should Contain non existing text NONE

Page Should Contain With Custom Log Level Below Current Log Level
[Tags] NoGrid
[Documentation] Html content is not shown when custom log level is below curent log level.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 2:18 FAIL Page should have contained text 'non existing text' but did not.
${old_level}= Set Log Level DEBUG
Page Should Contain non existing text TRACE
[Teardown] Set Log Level ${old_level}

Page Should Contain With Disabling Source Logging
[Documentation] LOG TEARDOWN:2 NONE
Set Log Level INFO
Expand Down
1 change: 1 addition & 0 deletions atest/acceptance/keywords/cookies.robot
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Test Get Cookie Keyword Logging
... secure=False
... httpOnly=False
... expiry=2023-10-29 19:36:51
... extra={'sameSite': 'Lax'}
${cookie} = Get Cookie another

*** Keyword ***
Expand Down
Loading

0 comments on commit 6d908e1

Please sign in to comment.