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
- Applescript To Select Sound Output stops at opening Sound Preferences Screen
- I am automating web scraping using python
- Autofill data from previous cell to next cell in openpyxl
- In spotfire, IronPython script: No Module named Selenium
- Python selenium automation browser
- Specflow defination not showing references
- Expect: Any way to match a specific rule only once?
- Automate the update of a pivot table in Excel via Power Automate Web
- Encountering a problem to interact with a weird button which is a combobox (select)
- Unable to Login through Automation(Cypress) to app, while the credentails are true. It allows manual login but unable to login through Cypress
- Selecting an option in the mobile app drop down which is not visible when the app is loaded for the first time
- Unable to launch WebDriverAgent
- How do I automate a video download with Selenium and Python (Meta Quest Store Trailer Download)
- Error: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure
- Trouble uploading with playwright
Related Questions in AUTOMATED-TESTS
- Generating wakeup and Error frame In LIN bus using CAPL script in Canoe tool
- Running Test in Azure failed at Cypress: "The plugins file is missing or invalid"
- Playwright - Firefox tests time out, but Chromium tests don't
- Automation testing for Flutter app in complex environment
- Karate mvn clean test does not work as I partially or totally run my features
- Base image question using playwright when performing visual comparison
- im using xpath and cant interact with the textbox
- I want to generate PDF automation report in XUnit using selenium driver and .net in visual studio?
- Run Robot in Jenkinsfile does not fetch the correct test.robot file from Github
- How to use threadpoolexecutor to run two tests and send the result of one as a parameter to the other in python
- How can I integrate a custom Mocha reporter into my test suite to filter out or ignored specific test cases from the test report based on tags?
- Optimizing Test Scenarios in Robot Framework: Reducing Redundancy and Enhancing Efficiency
- How to inject a QR code image for end-to-end testing a QR code scanning app
- how to log request object in playwright API testing
- throwing a StaleElementReferenceException during dictionary iteration in a for loop
Related Questions in OPENTEST
- Agents is not working for me on latest opentest build
- Android app in OPEN TEST - Access Denied for all users
- Use opentest with firefox behind a proxy
- sqlmap cut last 2 symbols of MD5 hash password. Hach the box
- How to add environment variables to actor.yaml file in opentest?
- What's the best way to handle basic authentication in an Opentest test involving public URLs?
- Opentest: I am unable to click on a specific checkbox using the selenium click action and css locators
- sqlmap: how to test multiple targets with post data
- Sudomy doesn't see api keys
- I have an android application where I can see that main activity is exported and there are no permissions set on that
- How to use FormData while testing API post request in opentest
- Is there a way to show real ads in open test
- How to reuse some steps from one yaml to another in Opentest
- How to filter defects with ID range in HP ALM C# OTA
- Opentest Backspace issue
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?
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.