In some complex tests, it is necessary to postpone test execution for some time. It may be we need to wait for something hours or days.. To not block Actor's resources would be great to have a chance of putting the execution on hold on the server level. Is this a planned or maybe already could be achieved somehow?
Related Questions in AUTOMATION
- No responses from google places text search api
- compare python requests with curl
- file_get_contents not working on my server but works fine anywhere else?
- Converting curl command to iOS
- cURL PHP code redirect after success
- curl command cannot get contents from api.github, but the network is fine
- PHP cURL Request for Web Service Returning Error
- How to convert CURL command to Swift
- curl command don't work in some cases
- Silence output curl_setopt_array
Related Questions in AUTOMATED-TESTS
- No responses from google places text search api
- compare python requests with curl
- file_get_contents not working on my server but works fine anywhere else?
- Converting curl command to iOS
- cURL PHP code redirect after success
- curl command cannot get contents from api.github, but the network is fine
- PHP cURL Request for Web Service Returning Error
- How to convert CURL command to Swift
- curl command don't work in some cases
- Silence output curl_setopt_array
Related Questions in OPENTEST
- No responses from google places text search api
- compare python requests with curl
- file_get_contents not working on my server but works fine anywhere else?
- Converting curl command to iOS
- cURL PHP code redirect after success
- curl command cannot get contents from api.github, but the network is fine
- PHP cURL Request for Web Service Returning Error
- How to convert CURL command to Swift
- curl command don't work in some cases
- Silence output curl_setopt_array
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Once a test session starts, acquires (reserves) all of the test actors that are needed to execute all of the tests in the session. The actors will only be released when the session was completed (successfully or not), so they can be reused by other test sessions. A particular test actor can be "delayed" for a period of time calling the $sleep JavaScript API in the test, which you probably know already. However, I'm not able to come up with a plausible logic on how pausing the OpenTest server would work. I understand that you'd like to be able to reuse those blocked test actors, but I don't think it's a good idea, because they are potentially (and most probably) storing some state for the test they were running when they got paused. A better approach would be to have some logic in your CI server (or whatever process is kicking off your test session) and perform any verifications to see if you have the resources you need before starting the session, if possible. If you describe a specific use case, I can try to be more helpful.
Edit: The right way to solve the use case you described is to find a way to determine the upstream system that is doing the order processing to trigger the execution on-demand and not have to wait one day for the test to execute (maybe ask the devs to implement a simple API that you can call). If that's not an option, and you absolutely have to wait, the right way to solve this is to have enough test actors to handle the number of tests you want to execute in parallel. The test actor consumes about 150 to 200MB of memory, so that would be the only thing that limits the number of actors you can run simultaneously on a single machine. In the future, OpenTest will have the ability to spin off multiple actors in the same process, so this will become a non-issue.
Once a test actor starts the work on executing a test, it is not safe to have it do any other work, because tests typically have to store some state (e.g. you create a variable to store the order number for the order you just placed). If the same actor executes two tests at the same time, the tests might overwrite each other's state and you get into issues that are very hard to troubleshoot.