Posts

Showing posts with the label #Cucumber

Jenkins Job Build for Maven and Cucumber

Image
Hello World, Moto:  In Jenkins, we all might be having a question which is,  "How to customize the Jenkins job build with the parameters" In this blog, we will see the build strategy configuration for the Jenkins job for Maven and cucumber automation project. Platform: Jenkins 2.121.3 Plugin(s):   Active Choices Parameter , Active Choices Reactive Parameter Solution: Step 1: Create 3 variables (1- Active Choices Parameter, 2- Active Choices Reactive Parameter) Step 2: Let's say those variables are the 'BuildStrategy'(Active Choice Parameter), 'Options' (Active Choice Reactive Parameter) , and 'Execute' (Active Choice Reactive Parameter) Step 3: Inject the groovy script for all variables accordingly, as shown below For 'BuildStrategy' inject this return ["Build Complete Suite:selected", "Build only selected features", "Build with custom provided tags"] For 'Options' inject...

Feature file(s) Execution in Cucumber

Hello World, On this post, we will understand the Execution of the cucumber's feature file(s). Normally we just create the feature file according to the application's feature/main_functional_category and most of the time(basically depending on our automation framework) its just independent from other features. But, what if...if we want to execute our cucumber framework with a proper defined sequence of feature files ? Now this situation arise when we are having following case: the features(or the steps inside features) are inter-related. Or, we just want to execute them as we want to. So, basically cucumber has its own default way to pickup the feature file for execution, which is of-course Alphabetical order (it also applied to sub-folder names) . But we can also override this default method of feature file selection for execution. So below are the methods/ways to override the default way of cucumber feature files... #1: Specify in @ CucumberOptions (or...