Comments (4)
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.
.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.
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.
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)
- Test Execution Enhancement Request HOT 1
- Feature Request: Add ability to pass values from ChorusContext to ProcessHandler's read and write Steps HOT 1
- Process not stopped HOT 4
- Add read/line doesn't exist Step(s) to ProcessHandler HOT 1
- Create a Step to Stop a Scenario HOT 2
- Support a language-neutral remoting protocol
- Upgrading from 1.6.8 to 1.6.9 Processes can't find configuration HOT 8
- Add support for Profiles to modify behaviour for different environments HOT 4
- Dynamic reloading of handler classes with revised step definitions
- Prevent duplicate default handler
- Capture console std/out and err streams at earliest possible opportunity
- Sikuli integration
- Logo HOT 1
- Rename Remoting handler as Connectors HOT 1
- Auto-Generate markdown and help text for for all built in handler steps HOT 1
- Ordering for execution listener callbacks
- Update docs for 3.0.x
- Add suite-start scenarios
- Installable for web agent
- Add 'wait for key press' before continuing on failed scenario switch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chorus.