Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Golem repeats messages to console #78

Closed
KeithScheiwiller opened this issue Dec 14, 2017 · 1 comment
Closed

Golem repeats messages to console #78

KeithScheiwiller opened this issue Dec 14, 2017 · 1 comment

Comments

@KeithScheiwiller
Copy link

OS name and version: Ubuntu 16.04
Python version: 3.5.2
Golem version: 0.4.1

Description:
When running a test suite, Golem appears to repeat messages logged to console. The number of times it repeats increases by one for each test (one message at a time, then 2 messages, then 3, etc.). I'm guessing this has to do with Python's logger propagation and handlers not getting cleaned up after each test (I could never quite get Python's logging module down).

Steps to Reproduce:

  • Create a test in Golem
  • Create a suite containing the same test 3 times (different tests should also be affected, but this makes it apparent)
  • Run the test suite

Expected Output:
Golem outputs logs for each sequential test only once

Actual Sample Output:

(venv) ubuntu@localhost:~/golem$ python golem.py run Dashboards ExampleSuite
22:41:22 INFO Test execution started: OpenGoogle
22:41:22 INFO Browser: chrome-headless
22:41:22 INFO Environment: production
22:41:24 INFO Navigate to: 'https://www.google.com'
22:41:24 INFO Verify the element 'hplogo' is visible
22:41:24 INFO Test passed
22:41:24 INFO Test execution started: OpenGoogle
22:41:24 INFO Test execution started: OpenGoogle
22:41:24 INFO Browser: chrome-headless
22:41:24 INFO Browser: chrome-headless
22:41:24 INFO Environment: production
22:41:24 INFO Environment: production
22:41:27 INFO Navigate to: 'https://www.google.com'
22:41:27 INFO Navigate to: 'https://www.google.com'
22:41:27 INFO Verify the element 'hplogo' is visible
22:41:27 INFO Verify the element 'hplogo' is visible
22:41:27 INFO Test passed
22:41:27 INFO Test passed
22:41:27 INFO Test execution started: OpenGoogle
22:41:27 INFO Test execution started: OpenGoogle
22:41:27 INFO Test execution started: OpenGoogle
22:41:27 INFO Browser: chrome-headless
22:41:27 INFO Browser: chrome-headless
22:41:27 INFO Browser: chrome-headless
22:41:27 INFO Environment: production
22:41:27 INFO Environment: production
22:41:27 INFO Environment: production
22:41:29 INFO Navigate to: 'https://www.google.com'
22:41:29 INFO Navigate to: 'https://www.google.com'
22:41:29 INFO Navigate to: 'https://www.google.com'
22:41:30 INFO Verify the element 'hplogo' is visible
22:41:30 INFO Verify the element 'hplogo' is visible
22:41:30 INFO Verify the element 'hplogo' is visible
22:41:30 INFO Test passed
22:41:30 INFO Test passed
22:41:30 INFO Test passed
@luciano-renzi
Copy link
Member

fixed in 0.4.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants