-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable setup of logging query results during library import and using…
… a dedicated keyword 'Set Logging Query Results'
- Loading branch information
Showing
4 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*** Settings *** | ||
Documentation Tests for parameters used when importing the library | ||
*** Test Cases *** | ||
Import Without Parameters Is Valid | ||
Import Library DatabaseLibrary | ||
|
||
Log Query Results Params Cause No Crash | ||
Import Library DatabaseLibrary log_query_results=False log_query_results_head=0 | ||
|
||
Log Query Results Head - Negative Value Not Allowed | ||
Run Keyword And Expect Error | ||
... STARTS: Initializing library 'DatabaseLibrary' with arguments [ log_query_results_head=-1 ] failed: ValueError: Wrong log head value provided: -1. The value can't be negative! | ||
... Import Library DatabaseLibrary log_query_results_head=-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*** Settings *** | ||
Documentation Tests for keywords controlling the logging query results | ||
Resource ../../resources/common.resource | ||
|
||
Suite Setup Connect To DB | ||
Suite Teardown Disconnect From Database | ||
Test Setup Create Person Table And Insert Data | ||
Test Teardown Drop Tables Person And Foobar | ||
|
||
*** Test Cases *** | ||
Calling The Keyword Causes No Crash | ||
Set Logging Query Results enabled=False | ||
Set Logging Query Results enabled=True log_head=0 | ||
Set Logging Query Results log_head=30 |