testIT-LivingDoc / livingdoc-core

This is the GitHub Repository of testIT LivingDoc core components - The exclusive solution to bring your acceptance tests to Atlassian Confluence.
https://testit-livingdoc.atlassian.net/wiki
GNU General Public License v3.0
34 stars 18 forks source link

Using LivingDoc with JEE applications #14

Closed evictoria closed 8 years ago

evictoria commented 8 years ago

Hi,

We created fixtures inside our JEE application. These fixtures need to call EJB's but it seem it doesn't work since the fixtures are not inside the EJB container. Is the only work-around for this is to call the webservices of our JEE application from the fixtures? Thanks..

jaspreetParhar commented 8 years ago

Hi evictoria,

this is by design. A fixtures lifecycle is controlled by the livingDoc execution code and therefore can't be within the EJB container's lifecycle. So you have to call the webservices of your JEE applications from the fixtures.

benhamidene commented 8 years ago

Hi, a very important test automation principle : SEPARATE test and production code ! NEVER EVER mix them ;)

You could use generic test fassades to acces your ejbs, that you only deploy to your testing environments