Code Monkey home page Code Monkey logo

Comments (4)

ekorneeva24 avatar ekorneeva24 commented on September 27, 2024

@cwolf24 maybe the key is called differently in the agent.
This is what ReportPortal awaits https://github.com/reportportal/client-javascript#startlaunch
Maybe you will be able to find how agent-js-cypress renames this key in the source code of the agent.

from agent-js-cypress.

AmsterGet avatar AmsterGet commented on September 27, 2024

Hello @cwolf24 !
You can just add an attributes field to reporter options.
https://github.com/reportportal/examples-js/blob/master/example-cypress/cypress.json#L21
I'll update the readme file to mention this field.

from agent-js-cypress.

cwolf24 avatar cwolf24 commented on September 27, 2024

@AmsterGet Thanks, with attributes it works now. 👍

from agent-js-cypress.

Zenin-Dmitry avatar Zenin-Dmitry commented on September 27, 2024

Hi,
When calling tests, I want to set special attributes that have a key and a value, and not just a value. I've tried different forms of notation, but at best only the value is passed. I need this to use filters by attribute values. I studied all the documentation, but I still couldn’t pass an array with attributes to the reportport. Please tell me the correct form.
If you pass attributes like this, they work, but I just need the key and value.
--reporter-options description=Shema,attributes=[attr1,attr2,arrt3]
I've tried many options, some give an error, some just don't transfer.
--reporter-options description=Shema,attributes=["key12:SLID"]
--reporter-options description=Shema,attributes=[{"key12:SLID"}]
--reporter-options description=Shema,attributes=[{"key12":"SLID"}]
what is the correct option?

from agent-js-cypress.

Related Issues (20)

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.