Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runner for Required tests #11

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/e2e-test/features/successfactors/DesignTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Regression
Feature: SuccessFactors Source - Design time scenarios

@BATCH-TS-SCFA-DSGN-01
@BATCH-TS-SCFA-DSGN-01 @Required
Scenario Outline: Verify user should be able to get output schema for a valid Entity name
When Open Datafusion Project to configure pipeline
And Select plugin: "SAP SuccessFactors" from the plugins list as: "Source"
Expand Down
2 changes: 1 addition & 1 deletion src/e2e-test/features/successfactors/RunTime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Feature: SuccessFactors Source - Run time scenarios
And Close the pipeline logs
Then Validate record created in Sink application is equal to expected output file "TestOutputFileWithFilter"

@BATCH-TS-SCFA-RNTM-03 @BQ_SINK @FILE_PATH @BQ_SINK_CLEANUP
@BATCH-TS-SCFA-RNTM-03 @BQ_SINK @FILE_PATH @BQ_SINK_CLEANUP @Required
Scenario: Verify user should be able to deploy and run the pipeline when plugin is configured with Server side Pagination Type
When Open Datafusion Project to configure pipeline
And Select plugin: "SAP SuccessFactors" from the plugins list as: "Source"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright © 2022 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

package io.cdap.plugin.tests.runner;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

/**
* Test Runner to execute SuccessFactors plugin's Required/P1 test scenarios.
*/
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/e2e-test/features"},
glue = {"io.cdap.plugin.successfactors.stepsdesign", "stepsdesign", "io.cdap.plugin.tests.hooks"},
tags = {"@Required"},
monochrome = true,
plugin = {"pretty", "html:target/cucumber-html-report", "json:target/cucumber-reports/cucumber.json",
"junit:target/cucumber-reports/cucumber.xml"}
)

public class TestRunnerRequired {
}