Improve functional testing by adding condition validation support function #1294
Labels
enhancement
This issue or pull request will add new or improve existing functionality
Testing
This issue or task involves testing the automation tool function
Milestone
💡 Summary
Functional testing often requires changing tenant configuration settings in order to validate certain use cases. Some changes, however, may be executed asynchronously or the new value is reflected with delay causing a test to intermittently fail depending on the load on the API service at any given time.
The idea is to add a support helper method that would just loop given a command/expression until the expression returned true or timed out given a timeout period. That way, you could set a pre-condition and have it wait until that condition became true or a pre-defined time period elapsed.
Motivation and context
Having an easy to reference and use pre-defined function to validate that a config item shows as changed or matches a given state prior to running a test will be convenient for developers to build robust tests that return predictable results.
Implementation notes
Please provide details for implementation, such as:
Acceptance criteria
How do we know when this work is done?
The text was updated successfully, but these errors were encountered: