Search code examples
javajunitselenium-webdriveroracle-ucm

How Can I perform Integration Testing against Oracle UCM with consistent data?


I have a web Application that uses the CIS-API to communicate with Oracle UCM. I've been tasked with writing automated tests on the web Interface. I've been able to get that running with . However, due to the nature of the site and my tests, the tests are somewhat tightly coupled to the Data.

How can I do proper Automated Testing on my site and ensure consistent data for my tests?

Oracle UCM is backed by an MS SQL Server Database.


Solution

  • How about making each test first create the document(s) with whatever metadata/properties needed for the individual test, on the fly, before the testflow. For example, each test would have a setup and teardown, where it creates a document, then tests it, then destroys the document once the test is finished. Then no need to anticipate the documents' order.