28
Views
2
Comments
How to use Outsystems with Cypress for E2E/Component Testing in CI/CD
Question

We're currently evaluating our possibilities for automated testing. I've previously worked with Cypress in Javascript Node Environments. Since there is no built-in solution for testing we've thought about the following:


Desired Workflow

Publish: An employee publishes a module (e.g., Application_Core).

Deploy to Pre-Test Environment: The module is automatically deployed to a Pre-Test environment.

Run Cypress Tests: External Cypress tests (stored in GitHub or another repository) are executed against the Pre-Test environment.

Promote to DEV: If all tests pass, the module is promoted to the DEV environment (which is essentially your staging/pre-production environment).



Is this generally possible? We've also found some other testing possibilitys for BDD Testing with the Outsystems Forge Component, but based on the reviews and how often it updates it doesnt look like a solid option. Could we technically built an external github repo with our Cypress Tests and run these in an Outsystems CI/CD Pipeline?


Publish Module -> Module goes to Pre-Test Environment -> Runs CI/CD Pipeline & Cypress Tests on external Github Repo with Github Actions? -> If all pass, push to DEV.


Are there any other options that worked well for you for large scale applications in a CI/CD Setup?

2022-12-30 07-28-09
Navneet Garg

No there is no forge component. You can write cypress script for OutSystems application because its a web application. You can read the following articles for more details.

https://success.outsystems.com/documentation/11/testing_apps/outsystems_testing_guidelines/

https://success.outsystems.com/documentation/11/testing_apps/automated_testing_tools/


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.