-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Listener that enables TESTAR to listen to the StdOut/Err SUT #63
Comments
I have added a version to create the SUT process from Java and then search it through PID. It seems to work and read processes correctly. I'm going to test it more, if someone finds mistakes or has ideas they'll be welcome |
Final version: Only available if we run the SUT through Command_line |
Also make sure that:
|
Solved: |
Refactor and prepare a new class |
The functionality works, so the only thing left is to refactor the code outside of DefaultProtocol |
Refactor ProcessListeners: - Moved out of DefaultProtocol class - Update lastExecutedAction on DefaultProtocol - Add procalc.jar, nice app to test the process listeners
Implemented, lets close this enhancement thread. |
Refactor ProcessListeners: - Moved out of DefaultProtocol class - Update lastExecutedAction on DefaultProtocol - Add procalc.jar, nice app to test the process listeners
It should be able to listen during testing (ONLINE oracle) and it should stores it all in a file that can be inspected after testing (OFFLINE oracle).
System.out and System.err listens to the StdOut/Err of TESTAR itself. We should somehow catch the StdOUT/ERR of the SUT when it is started up.
HINTS on a possible solution within Java: https://stackoverflow.com/questions/3643939/java-process-with-input-output-stream
HINTS on a possible solution in cpp WinAPI:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx
The text was updated successfully, but these errors were encountered: