Hi,
On our project we have a pretty big suite of testcases that use testcontent in the cms to check if everything is working according to specs.
The problem with the current set up is that a lot of tests are dependent on test content that was manually created in the T-environment. This makes it really hard to run automated tests on other environments were that content is not available. Manually copying the content to other environments is not really an option because we want to be able to run the tests on production as well.
All our tests are selenium based and currently some tests already use selenium to create and remove documents. This takes a lot of developer effort each time a new document type has to be tested and it's also very slow because selenium uses a lot of pause to make sure everything is loaded.
Because of this problem we're looking for another way to create test content on the fly when running the functional tests. I'm thinking of something were we load an xml-file with test content directly into the CMS or something like that. Maybe by using a REST-service to create a document based on the XML. Does anything like that already exists in Hippo or is the only way to create documents over HTTP by using the CMS GUI? In that case i would have to write something myself. I think I can use the 'REPOSITORY JAX-RS SERVICE' for that, am I right?
Does anyone have other ideas about this? I'm sure were not the only project that is facing issues with creating test content in Hippo.
Kind regards,
Oscar Farg