BorisOsipov / wdio-reportportal-service

Service for https://github.com/BorisOsipov/wdio-reportportal-reporter
MIT License
4 stars 4 forks source link

Launch never finishes, remains in progress #33

Closed zvpanchal closed 2 years ago

zvpanchal commented 2 years ago

Problem: Report Portal launches remain "In Progress" even after the test suite completes.

image

Below is my package.json

"dependencies": {
        "@wdio/allure-reporter": "^7.12.5",
        "@wdio/appium-service": "^7.12.5",
        "@wdio/browserstack-service": "^7.12.5",
        "@wdio/cli": "^7.12.6",
        "@wdio/local-runner": "^7.12.5",
        "@wdio/mocha-framework": "^7.12.5",
        "@wdio/spec-reporter": "^7.12.5",
        "@wdio/sync": "^7.12.5",
        "wdio-reportportal-reporter": "^7.4.1",
        "wdio-reportportal-service": "^7.3.1",
        "assert": "^2.0.0",
        "aws-sdk": "^2.972.0",
        "config": "^1.28.1",
        "eslint": "^7.32.0",
        "eslint-config-airbnb-base": "^14.2.1",
        "eslint-plugin-import": "^2.24.1",
        "eslint-plugin-wdio": "^7.0.0",
        "fs": "0.0.1-security",
        "mocha": "^6.2.3",
        "prettier": "^1.19.1",
        "request": "^2.88.2",
        "request-promise": "^4.2.6",
        "wd": "^1.14.0",
        "webdriverio": "^7.12.5",
        "xml2js": "^0.4.23"
    },

Below is my config file

services: [
    [
      'appium',
    ],
    [
      'browserstack', {
        browserstackLocal: false,
      },
    ],
    [
      'RpService', {
      },
    ],
],
BorisOsipov commented 2 years ago

@zvpanchal Please read docs carefully. use:

const RpService = require('wdio-reportportal-service');

exports.config = {
  // ...
  services: [[RpService, {}]],
  // ...
}

not

    [
      'RpService', {
      },
    ],

Also

    [
      'reportportal', {
      },
    ],

should work, but I haven't tried

zvpanchal commented 2 years ago

Hi @BorisOsipov - Thanks for your reply.

I do have 2 projects using wdio-reportportal-service; (1) Web Automation, and (2) Mobile Automation. For Web Automation - [[RpService, {configParams}]] worked. ([[RpService, {}]] did not work as expected)

For Mobile Automation where I also need to use appium service in the array, I did try using [[RpService, {}]], [[RpService, { configParams }]] or [[reportportal, {configParams}]]. None of these options worked for my mobile test automation when I have appium in the services list.

BorisOsipov commented 2 years ago

@zvpanchal could not help without reproducible example. please create simple github repo that I can clone and repro the issue.

zvpanchal commented 2 years ago

@BorisOsipov - Sure, I will.

I did some trial and error, and found that if I remove appium from the services array, then wdio-reportportal-service works as expected (i.e. it completes the launch on report portal after finishing all the tests).

As soon as I add appium in the array, RpService does not work as intended... so something to look at..

I will work on getting a repo up and running for you to reproduce