Code Monkey home page Code Monkey logo

wdio-sumologic-reporter's People

Contributors

christian-bromann avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isabella232

wdio-sumologic-reporter's Issues

Sumologic reporter doesn't consistently transactionize all tests

The problem

Sumologic reporter is not consistently transactionizing all tests - some blocks within a given spec will get all three events, where others do not.

Environment

  • WebdriverIO version: 4.2.8
  • Node.js version: 6.3.0
  • Standalone mode or wdio testrunner: testrunner
  • if wdio testrunner, running synchronous or asynchronous tests: sync
  • Additional wdio packages used (if applicable): mocha, spec/dot, sumologic

Details

each block within a spec is determined to have a test:start, test:(result), and test:end - not all blocks within a spec are consistently receiving this event tag. after running a spec several times, i see that some blocks are getting only 1 or 2 of the expected 3 test state events.

Link to Selenium/WebdriverIO logs

spec reporter output (consistently 5 tests reported)

[Chrome #0a] Session ID: 8d49a74edc2e4cbb0da6a8f88f862ad894282cfd
[Chrome #0a] Spec: /Users/jterry/huge.amc-webdriverio/test/specs/homeHeroCarouselLarge_Test.js
[Chrome #0a] Running: Chrome
[Chrome #0a]
[Chrome #0a] AMC Homepage Hero Carousel - Full
[Chrome #0a] ✓ Carousel Next is visible at >1260
[Chrome #0a] ✓ Carousel Previous is visible at >1260
[Chrome #0a] ✓ Carousel Next works
[Chrome #0a] ✓ Carousel Previous works
[Chrome #0a] ✓ Carousel Buttons work
[Chrome #0a]
[Chrome #0a]
[Chrome #0a] 5 passing (33s)
[Chrome #0a]

here is a gist that should hopefully just point out something silly i shouldn't do:
https://gist.github.com/jonyet/da3b9859a26de94ba48dd33ac5e93afd

gist with the csv output from sumo:
https://gist.github.com/jonyet/089eda1a0e2e00e69cc0a34b38d07b9f

you can see in the csv that groups 3, 4, and 5 are the examples of the issue.

relevant block from wdio.conf.js:

  framework: 'mocha',
  reporters: ['spec', 'sumologic'],
    reporterOptions: {
        allure: {
            outputDir: './test/reports/allure-results/'
        },
        sumologic: {
          syncInterval: 100,
          sourceAddress: process.env.SUMO_SOURCE_ADDRESS
        }
    },

Code To Reproduce Issue [ Good To Have ]

will work on reproducing this with an example you can use, yourself

Please remember that, with sample code; it's easier to reproduce bug and much faster to fix it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.