GithubHelp home page GithubHelp logo

Comments (4)

nickebbutt avatar nickebbutt commented on June 15, 2024

Hi, you can come close to this already if you set the property readTimeoutSeconds for the processes handler
https://github.com/Chorus-bdd/Chorus/wiki/ProcessesHandlerProperties

When you wait for process output, the step will timeout after this many seconds if the output is not detected.
This property will take effect at the feature level so it is not quite as specific as setting an individual timeout for each step, but it may be enough.

Something else we could easily add are extra steps in the process handler which include 'within' such as:

.read the line '(.)' from (?:the )?([a-zA-Z0-9-_]*) process within (\d+) seconds

We may look to add those in a release soon if it would be helpful

from chorus.

yamaduc avatar yamaduc commented on June 15, 2024

.read the line '(.)' from (?:the )?([a-zA-Z0-9-_]*) process within (\d+) seconds would be a great addition.

I realized what I meant to say in the bug is I need a way to:

When I write the line 'execute some command' to the console process
Read the line xxxx
Then I write the line 'execute some command' to the console process

I need this group of steps in some PassesWithinAnnontation

I suppose I could call this in a step macro and call it multiple times, but the feature file will get ugly..

from chorus.

yamaduc avatar yamaduc commented on June 15, 2024

Right now we have some output, which prints some value sort of like executing a ping, where it continues to print forever until we hit the enter or return key.

The problem with step

Then I read the line 'created=1772' from the console process

it never exits, because this value it printed to the stdout overt and over, eventually the test will time out.

from chorus.

nickebbutt avatar nickebbutt commented on June 15, 2024

Closing this for now, since I think there is a new feature request raised for reading output within a given time limit. I think a more detailed example would be needed if there is another case to address

from chorus.

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.