Code Monkey home page Code Monkey logo

Comments (5)

pupssman avatar pupssman commented on August 18, 2024

It can be done via fiddling with the internal data structure, but I can not consider that a good idea.
What is the use c ase for that need?

from allure-pytest.

alvassin avatar alvassin commented on August 18, 2024

I have a group of elements to check, for example buy buttonson a website. Logic for all elements is same: get price on website, check price format, currency, check price with pricelist. But to get this price action list may differ (at one time i just need to open browser page, and i can see it, another time i need to see the prices for every quantity position, etc).

So, i pass data smth like that (don't remember honestly, but just the idea):

[
  {
    "selector" : "dom selector",
    "severity" : "minor",
    "actions" : {
        "click" : "selector",
        "dblclick" : "selector"
    }
  }
]

According to this data, i can mark some buttons as critical (that provide main products sales), some buttons not critical (for some not such critical products).

Also our QA engineer wants to have ability to run tests with specified severity(ies) (i suppose we will implement such functionality in out tests runner), we will need ability to define severity in the test.

from allure-pytest.

pupssman avatar pupssman commented on August 18, 2024

So you have this kind of data for test case parametrization?
It does look like a static data set to me. Therefore, one should supply the severity in the static context, at the same level where test parameters are defined.
It may become clearer if you present actual test code (clarified for simplicity) to devise exact way of doing so.

from allure-pytest.

pupssman avatar pupssman commented on August 18, 2024

See #60 / #84

from allure-pytest.

sseliverstov avatar sseliverstov commented on August 18, 2024

It is possible with v2.

from allure-pytest.

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.