gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
48 stars 39 forks source link

Error: Got unexpected extra argument (./test-results/junit-report.xml) #168

Closed ImBIOS closed 8 months ago

ImBIOS commented 9 months ago

TestRail CLI Version

1.5.0

CLI Environment

No response

TestRail Version

TestRail v8.0.1 Default (1033)

TestRail Instance Type

NA

Current behavior

Error: Got unexpected extra argument (./test-results/junit-report.xml)

<testsuites id="" name="" tests="15" failures="0" skipped="0" errors="0" time="16.813736">
<testsuite name="e2e/dummy/testrail.spec.ts" timestamp="2023-10-11T03:58:09.528Z" hostname="chromium" tests="5" failures="0" skipped="0" time="12.734" errors="0">
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [List Surat Pesanan] User able to see button &quot;Tambah&quot;" classname="e2e/dummy/testrail.spec.ts" time="2.858">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to choose Jenis SP&quot;" classname="e2e/dummy/testrail.spec.ts" time="2.815">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to choose SP Reguler" classname="e2e/dummy/testrail.spec.ts" time="2.367">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to see field Apoteker Penanggung Jawab and this field disable to input" classname="e2e/dummy/testrail.spec.ts" time="1.946">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Tambah Surat Pesanan] [Detail Surat Pesanan] User can click button &quot;+&quot;" classname="e2e/dummy/testrail.spec.ts" time="2.748">
</testcase>
</testsuite>
<testsuite name="e2e/dummy/testrail.spec.ts" timestamp="2023-10-11T03:58:09.528Z" hostname="firefox" tests="5" failures="0" skipped="0" time="19.474" errors="0">
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [List Surat Pesanan] User able to see button &quot;Tambah&quot;" classname="e2e/dummy/testrail.spec.ts" time="4.489">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to choose Jenis SP&quot;" classname="e2e/dummy/testrail.spec.ts" time="4.54">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to choose SP Reguler" classname="e2e/dummy/testrail.spec.ts" time="4.058">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to see field Apoteker Penanggung Jawab and this field disable to input" classname="e2e/dummy/testrail.spec.ts" time="3.187">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Tambah Surat Pesanan] [Detail Surat Pesanan] User can click button &quot;+&quot;" classname="e2e/dummy/testrail.spec.ts" time="3.2">
</testcase>
</testsuite>
<testsuite name="e2e/dummy/testrail.spec.ts" timestamp="2023-10-11T03:58:09.528Z" hostname="webkit" tests="5" failures="0" skipped="0" time="12.824" errors="0">
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [List Surat Pesanan] User able to see button &quot;Tambah&quot;" classname="e2e/dummy/testrail.spec.ts" time="2.619">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to choose Jenis SP&quot;" classname="e2e/dummy/testrail.spec.ts" time="3.479">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to choose SP Reguler" classname="e2e/dummy/testrail.spec.ts" time="2.698">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Add Surat Pesanan] User able to see field Apoteker Penanggung Jawab and this field disable to input" classname="e2e/dummy/testrail.spec.ts" time="1.028">
</testcase>
<testcase name="Surat Pesanan, Positive Case @testrail @dummy › [Tambah Surat Pesanan] [Detail Surat Pesanan] User can click button &quot;+&quot;" classname="e2e/dummy/testrail.spec.ts" time="3">
</testcase>
</testsuite>
</testsuites>

Desired behavior

Submitted successfully

More Details


  System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M2
    Memory: 129.09 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.1 - ~/.proto/bin/node
    npm: 9.8.1 - ~/.proto/bin/npm
    pnpm: 8.7.6 - ~/.proto/bin/pnpm
  Languages:
    Bash: 3.2.57 - /bin/bash
    Go: 1.21.0 - /usr/local/go/bin/go
    Java: 17.0.8.1 - /usr/bin/javac
    Perl: 5.30.3 - /usr/bin/perl
    PHP: 8.2.11 - /Users/ImBIOS/Library/Application Support/Herd/bin/php
    Protoc: 3.21.9 - /usr/local/bin/protoc
    Python: 3.11.6 - /opt/homebrew/opt/python@3.11/libexec/bin/python
    Python3: 3.11.6 - /opt/homebrew/bin/python3
    Ruby: 2.6.10 - /usr/bin/ruby
    Rust: 1.73.0 - /Users/ImBIOS/.cargo/bin/rustc
  npmPackages:
    @chakra-ui/anatomy: ^2.2.1 => 2.2.1
    @chakra-ui/cli: ^2.4.1 => 2.4.1
    @chakra-ui/icons: ^2.1.1 => 2.1.1
    @chakra-ui/next-js: ^2.1.5 => 2.1.5
    @chakra-ui/react: ^2.8.1 => 2.8.1
    @chakra-ui/stepper: ^2.3.1 => 2.3.1
    @chakra-ui/styled-system: ^2.9.1 => 2.9.1
    @chakra-ui/theme-tools: ^2.1.1 => 2.1.1
    @choc-ui/chakra-autocomplete: ^5.2.7 => 5.2.7
    @emotion/react: ^11.11.1 => 11.11.1
    @emotion/styled: ^11.11.0 => 11.11.0
    @fontsource/roboto: ^5.0.8 => 5.0.8
    @happy-dom/global-registrator: ^12.9.0 => 12.5.0
    @imbios/datepicker: ^1.0.0 => 1.0.0
    @next/bundle-analyzer: ^13.5.4 => 13.5.3
    @next/env: ^13.5.4 => 13.5.3
    @playwright/test: ^1.38.1 => 1.38.1
    @sentry/nextjs: ^7.73.0 => 7.73.0
    @testing-library/jest-dom: ^6.1.3 => 6.1.3
    @testing-library/react: ^14.0.0 => 14.0.0
    @testing-library/user-event: ^14.5.1 => 14.5.1
    @types/jest: ^29.5.5 => 29.5.5
    @types/jsonwebtoken: ^9.0.3 => 9.0.3
    @types/lodash: ^4.14.199 => 4.14.199
    @types/node: ^20.8.0 => 20.8.0
    @types/react: ^18.2.23 => 18.2.24
    @types/react-dom: ^18.2.8 => 18.2.8
    @types/react-input-mask: ^3.0.3 => 3.0.3
    @typescript-eslint/eslint-plugin: ^6.7.3 => 6.7.3
    @typescript-eslint/parser: ^6.7.3 => 6.7.3
    bun-types: ^1.0.4 => 1.0.3
    chakra-react-select: ^4.7.2 => 4.7.2
    date-fns: ^2.30.0 => 2.30.0
    date-fns-tz: ^2.0.0 => 2.0.0
    eslint: ^8.51.0 => 8.50.0
    eslint-config-airbnb: ^19.0.4 => 19.0.4
    eslint-config-airbnb-typescript: ^17.1.0 => 17.1.0
    eslint-config-next: 13.5.4 => 13.5.3
    eslint-config-prettier: ^9.0.0 => 9.0.0
    eslint-plugin-import: ^2.28.1 => 2.28.1
    eslint-plugin-import-helpers: ^1.3.1 => 1.3.1
    eslint-plugin-jsx-a11y: ^6.7.1 => 6.7.1
    eslint-plugin-react: ^7.33.2 => 7.33.2
    eslint-plugin-simple-import-sort: ^10.0.0 => 10.0.0
    framer-motion: ^10.16.4 => 10.16.4
    husky: ^8.0.3 => 8.0.3
    i18n-num-in-words: ^1.0.0 => 1.0.0
    image-size: ^1.0.2 => 1.0.2
    is-ci: ^3.0.1 => 3.0.1
    jest: ^29.7.0 => 29.7.0
    jest-environment-jsdom: ^29.7.0 => 29.7.0
    jsonwebtoken: ^9.0.2 => 9.0.2
    jspdf: ^2.5.1 => 2.5.1
    lint-staged: ^14.0.1 => 14.0.1
    lodash: ^4.17.21 => 4.17.21
    next: 13.5.4 => 13.5.3
    next-auth: ^4.23.1 => 4.23.2
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    react-hook-form: ^7.46.2 => 7.47.0
    react-input-mask: ^2.0.4 => 2.0.4
    react-nanny: ^2.15.0 => 2.15.0
    sharp: ^0.32.6 => 0.32.6
    typescript: ^5.2.2 => 5.2.2
bitcoder commented 8 months ago

Can you please try with the latest version? Can you also please provide the exact command line you used?

bitcoder commented 8 months ago

This issue will be closed in the upcoming days for lack of feedback, as it is not possible to replicate this

koynoyno commented 5 months ago

@ImBIOS @bitcoder if you're following https://support.testrail.com/hc/en-us/articles/9682231778324-Integrating-with-Playwright docs, they have a typo.

The final line, where you pass name of the report, should include --file argument, so it should look like --file "./test-results/junit-report.xml".

After I've added that argument, the problem disappeared.