- May 14, 2018 at 8:45 am #19466
We’re setting up regression testing and CI with Jenkins, and creating a test framework for this.
Should application set-up (starting the application, setting proxy ports, starting database etc) be done in the Jenkins pipeline or should this be done in the test framework? Any recommendations?May 14, 2018 at 12:01 pm #19469DarwinModerator@darwin
I would like to suggest you to do it separately through Jenkins pipeline. The more generic the framework is, maximum reusability it has.
Why to keep the set up separate from the framework?
- Makes it easier for maintenance
- Easy to locate and figure out the reason for errors if it is caused because of the setup
- Clear reports
Do you have any specific reason to create a test framework rather than choosing from already available frameworks?May 14, 2018 at 12:35 pm #19470
At the moment we have a “set-up” stage in Jenkins pipeline (maybe there’s a way to not make it show though…). But I’m not sure if we later on will discover that we lack some flexibility, and that we’ll have to change the pipeline for every new set-up too.
We already have a small collection of simple python modules for regression testing. The frameworks on the internet seems complicated.May 14, 2018 at 3:58 pm #19480DarwinModerator@darwin
If this framework is solely made to fit only for a specific requirement then you can have this set up within the framework. In the end it should help you to resolve your problems and not by creating another. But in general, I would say a framework has to be generic for wider audience to build additional functionality from it.
Congrats and all the best for your set up and new framework 🙂May 14, 2018 at 4:10 pm #19481
Yes… I think you’re right. It probably depends on how general the framework needs to be. Thanks for answering!
- You must be logged in to reply to this topic.