Skip to content

Flexible config parameters - #153

Open
ocr wants to merge 3 commits into
masterfrom
flexible_conf
Open

Flexible config parameters#153
ocr wants to merge 3 commits into
masterfrom
flexible_conf

Conversation

@ocr

@ocr ocr commented Sep 22, 2016

Copy link
Copy Markdown

3 new configuration parameters for debugging:

In wptdriver.ini:

  • "DontCleanupResults=true" turns off deletion of the results directory after a test is completed. It does not turn off results deletion at the beginning of a new test.

In the script metadata

  • "NoScreenshots: true" turns off all screenshots (wpthook or hawk)
  • "NoLockstep: true" turns off lock step mode in the rwdclient

Olivier Crameri added 3 commits September 22, 2016 15:32
The new config parameter disable automatic deletion of results directory after a
test is over. The new flag can be set in wptdriver.ini and is turned off by
default.
The new metadata parameter turns all forms of screenshot taking during a test.
Turns off LockStep mode for the webdriver script
GetCPUTime(_doc_cpu_time, _doc_total_time);
ActivityDetected();
if (!_test._useHawk) {
if (!_test._useHawk && !_test._noScreenshots) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could simplify the code by:

  • setting _noScreenshots to true when we want to use Hawk and only testing for _noScreenshots
  • Running image tools if (!test._noScreenshots || test._useHawk)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants