-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to import automated tests to Zephyr
Add ability to import automated tests to Zephyr: add level properties for story and scenario add ability to create jira issue add ability to link requirement to test
- Loading branch information
1 parent
3124f8e
commit 1e9199b
Showing
28 changed files
with
1,185 additions
and
87 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...-to-zephyr-exporter/src/main/java/org/vividus/zephyr/configuration/JiraFieldsMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright 2019-2021 the original author or authors. | ||
* | ||
* 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 | ||
* | ||
* https://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 org.vividus.zephyr.configuration; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@ConfigurationProperties("jira.fields-mapping") | ||
public class JiraFieldsMapping | ||
{ | ||
private String storyType; | ||
|
||
private String testSteps; | ||
|
||
public String getStoryType() | ||
{ | ||
return storyType; | ||
} | ||
|
||
public void setStoryType(String storyType) | ||
{ | ||
this.storyType = storyType; | ||
} | ||
|
||
public String getTestSteps() | ||
{ | ||
return testSteps; | ||
} | ||
|
||
public void setTestSteps(String testSteps) | ||
{ | ||
this.testSteps = testSteps; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...r-exporter/src/main/java/org/vividus/zephyr/convertor/CucumberStoryScenarioConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright 2019-2021 the original author or authors. | ||
* | ||
* 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 | ||
* | ||
* https://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 org.vividus.zephyr.convertor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.vividus.model.jbehave.Step; | ||
import org.vividus.model.jbehave.Story; | ||
import org.vividus.zephyr.model.CucumberTestStep; | ||
|
||
public final class CucumberStoryScenarioConverter | ||
{ | ||
private CucumberStoryScenarioConverter() | ||
{ | ||
} | ||
|
||
public static List<CucumberTestStep> convert(String scenarioTitle, List<Step> steps) | ||
{ | ||
List<CucumberTestStep> testSteps = new ArrayList<>(); | ||
return testSteps; | ||
} | ||
|
||
public static List<CucumberTestStep> convert(Story steps) | ||
{ | ||
List<CucumberTestStep> testSteps = new ArrayList<>(); | ||
return testSteps; | ||
} | ||
} |
Oops, something went wrong.