本文整理汇总了Java中ru.yandex.qatools.allure.annotations.Stories类的典型用法代码示例。如果您正苦于以下问题:Java Stories类的具体用法?Java Stories怎么用?Java Stories使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Stories类属于ru.yandex.qatools.allure.annotations包,在下文中一共展示了Stories类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getLabels
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
private List<Label> getLabels() {
final Method method = getMethod();
final List<Label> labels = new ArrayList<>();
labels.addAll(Allure1Utils.getLabels(method, Severity.class, Allure1Utils::createLabels));
labels.addAll(Allure1Utils.getLabels(method, Stories.class, Allure1Utils::createLabels));
labels.addAll(Allure1Utils.getLabels(method, Features.class, Allure1Utils::createLabels));
return labels;
}
开发者ID:allure-framework,项目名称:allure-java,代码行数:9,代码来源:Allure1Annotations.java
示例2: testSomething
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Title("testcase")
@Description("testcase description")
@Issue("ISSUE-2")
@Issues(@Issue("ISSUE-22"))
@TestCaseId("TEST-1")
@Stories("story2")
@Features("feature2")
@Severity(SeverityLevel.CRITICAL)
@org.testng.annotations.Test
public void testSomething() {
}
开发者ID:allure-framework,项目名称:allure-java,代码行数:13,代码来源:Allure1TestCaseAspectsTest.java
示例3: testAddTodoItem
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-1")
@Stories("Add a Todo Item")
@Test(description = "Add an item")
public void testAddTodoItem() {
boolean iResult = BasicTodoMvcPage.open().then()
.addTodoItem("FirstItem");
Assert.assertTrue("1. I want to add a To-do item", iResult);
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:12,代码来源:TodoMVCTests.java
示例4: testEditTodoItem
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-2")
@Stories("Edit a Todo Item")
@Test(description = "Edit an item")
public void testEditTodoItem() {
itemName = "Item to be edited";
BasicTodoMvcPage.open().then().addTodoItem(itemName);
Assert.assertTrue("2. I want to edit the content of an existing To-do item", BasicTodoMvcPage.open().editTodoItem(itemName, "Item updated"));
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:10,代码来源:TodoMVCTests.java
示例5: testCompleteTodoItem
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-3")
@Stories("testCompleteTodoItem")
@Test(description = "testCompleteTodoItem")
public void testCompleteTodoItem(){
itemName = "Item created for completion";
BasicTodoMvcPage.open().then().addTodoItem(itemName);
Assert.assertTrue("3. I can complete a To-do by clicking inside the circle UI to the left of the To-do", BasicTodoMvcPage.open().completeTodoItem(itemName));
BasicTodoMvcPage.open().clearAllCompletedTodoItems();
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:10,代码来源:TodoMVCTests.java
示例6: testReactivateTodoItem
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-4")
@Stories("testReactivateTodoItem")
@Test(description = "testReactivateTodoItem")
public void testReactivateTodoItem(){
itemName = "Item created for completion";
BasicTodoMvcPage.open().then().addTodoItem(itemName);
BasicTodoMvcPage.open().completeTodoItem("Item created for completion");
Assert.assertTrue("4. I can re-activate a completed To-do by clicking inside the circle UI", BasicTodoMvcPage.open().reActivateItem(itemName));
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:11,代码来源:TodoMVCTests.java
示例7: testAddSecondTodoItem
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-5")
@Stories("testAddSecondTodoItem")
@Test(description = "testAddSecondTodoItem")
public void testAddSecondTodoItem(){
Assert.assertTrue(BasicTodoMvcPage.open().then().addTodoItem("FirstItem"));
Assert.assertTrue("5. I can add a second To-do", BasicTodoMvcPage.open().addTodoItem("SecondItem"));
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:8,代码来源:TodoMVCTests.java
示例8: testCompleteAllTodoItems
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-6")
@Stories("testCompleteAllTodoItems")
@Test(description = "testCompleteAllTodoItems")
public void testCompleteAllTodoItems(){
BasicTodoMvcPage.open().then().addTodoItem("Item created to test Complete All Items functionality");
Assert.assertTrue("6. I can complete all active To-dos by clicking the down arrow at the top-left of the UI", BasicTodoMvcPage.open().completeAllItems());
BasicTodoMvcPage.open().clearAllCompletedTodoItems();
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:10,代码来源:TodoMVCTests.java
示例9: testFilterCompletedItems
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-7")
@Stories("testFilterCompletedItems")
@Test(description = "testFilterCompletedItems")
public void testFilterCompletedItems(){
itemName = "Item created to test Filter by completion status functionality";
BasicTodoMvcPage.open().then().addTodoItem(itemName);
Assert.assertTrue("7. I can filter the visible To-dos by Completed state", BasicTodoMvcPage.open().searchItemByCompletedStatus(itemName));
BasicTodoMvcPage.open().clearAllCompletedTodoItems();
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:11,代码来源:TodoMVCTests.java
示例10: testDeleteTodoItem
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-8")
@Stories("testDeleteTodoItem")
@Test(description = "testDeleteTodoItem")
public void testDeleteTodoItem(){
itemName = "Item created for deletion";
BasicTodoMvcPage.open().then().addTodoItem(itemName);
Assert.assertTrue("8. I can clear a single To-do item from the list completely by clicking the Close icon", BasicTodoMvcPage.open().deleteTodoItem(itemName));
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:10,代码来源:TodoMVCTests.java
示例11: testClearAllTodoItems
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Issue("TODOMVC-9")
@Stories("testClearAllTodoItems")
@Test(description = "testClearAllTodoItems")
public void testClearAllTodoItems(){
BasicTodoMvcPage.open().then().addTodoItem("Item created to test Clear all items functionality");
BasicTodoMvcPage.open().completeAllItems();
Assert.assertTrue("9. I can clear all completed To-do items from the list completely", BasicTodoMvcPage.open().clearAllCompletedTodoItems());
}
开发者ID:AdyKalra,项目名称:ToDoMVCEmberJS,代码行数:10,代码来源:TodoMVCTests.java
示例12: getStoriesAnnotation
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
private Stories getStoriesAnnotation(final String value) {
return new Stories() {
@Override
public String[] value() {
return new String[]{value};
}
@Override
public Class<Stories> annotationType() {
return Stories.class;
}
};
}
开发者ID:kirlionik,项目名称:allure-cucumber-plugin,代码行数:15,代码来源:AllureReporter.java
示例13: loginWithoutCredentials
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Features("Login")
@Stories("Login without credentials")
@TestRailCaseID("33")
@Test
public void loginWithoutCredentials() throws Exception
{
loginPage.submitLogin("", "");
assertThat("Check error message.", loginPage.getAuthenticationError(),
is(equalTo(errorMessage)));
}
开发者ID:crazycabo,项目名称:testable-testsuite-ui,代码行数:11,代码来源:LoginTest.java
示例14: loginWithoutPassword
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Features("Login")
@Stories("Login without password")
@TestRailCaseID("34")
@Test
public void loginWithoutPassword() throws Exception
{
loginPage.submitLogin(ServerStaticGlobals.email, "");
assertThat("Check error message.", loginPage.getAuthenticationError(),
is(equalTo(errorMessage)));
}
开发者ID:crazycabo,项目名称:testable-testsuite-ui,代码行数:11,代码来源:LoginTest.java
示例15: loginWithoutUsername
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Features("Login")
@Stories("Login without email")
@TestRailCaseID("35")
@Test
public void loginWithoutUsername() throws Exception
{
loginPage.submitLogin("", ServerStaticGlobals.password);
assertThat("Check error message.", loginPage.getAuthenticationError(),
is(equalTo(errorMessage)));
}
开发者ID:crazycabo,项目名称:testable-testsuite-ui,代码行数:11,代码来源:LoginTest.java
示例16: loginWithInvalidCredentials
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Features("Login")
@Stories("Login with invalid credentials")
@TestRailCaseID("36")
@Test
public void loginWithInvalidCredentials() throws Exception
{
loginPage.submitLogin("[email protected]", "Pass1234");
assertThat("Check error message.", loginPage.getAuthenticationError(), is(equalTo(errorMessage)));
}
开发者ID:crazycabo,项目名称:testable-testsuite-ui,代码行数:10,代码来源:LoginTest.java
示例17: loginWithValidCredentials
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
@Features("Login")
@Stories("Login with valid credentials")
@TestRailCaseID("37")
@Test
public void loginWithValidCredentials() throws Exception
{
HomePage homePage = new HomePage(localDriver, loginPage, ServerStaticGlobals.email, ServerStaticGlobals.password);
homePage.get();
assertThat("Cannot authenticate account.", homePage.userIsAuthenticated(), is(true));
}
开发者ID:crazycabo,项目名称:testable-testsuite-ui,代码行数:11,代码来源:LoginTest.java
示例18: testSuiteStarted
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
public void testSuiteStarted(Description description, String suiteName) throws IllegalAccessException {
String[] annotationParams = findFeatureByScenarioName(suiteName);
//Create feature and story annotations. Remove unnecessary words from it
Features feature = getFeaturesAnnotation(new String[]{annotationParams[0].split(":")[1].trim()});
Stories story = getStoriesAnnotation(new String[]{annotationParams[1].split(":")[1].trim()});
//If it`s Scenario Outline, add example string to story name
if (description.getDisplayName().startsWith("|")
|| description.getDisplayName().endsWith("|")) {
story = getStoriesAnnotation(new String[]{annotationParams[1].split(":")[1].trim()
+ " " + description.getDisplayName()});
}
String uid = generateSuiteUid(suiteName);
TestSuiteStartedEvent event = new TestSuiteStartedEvent(uid, story.value()[0]);
event.setTitle(story.value()[0]);
//Add feature and story annotations
Collection<Annotation> annotations = new ArrayList<>();
for (Annotation annotation : description.getAnnotations()) {
annotations.add(annotation);
}
annotations.add(story);
annotations.add(feature);
AnnotationManager am = new AnnotationManager(annotations);
am.update(event);
event.withLabels(AllureModelUtils.createTestFrameworkLabel("CucumberJVM"));
getLifecycle().fire(event);
}
开发者ID:allure-framework,项目名称:allure-cucumberjvm,代码行数:35,代码来源:AllureRunListener.java
示例19: getStoriesAnnotation
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
/**
* Creates Story annotation object
*
* @param value story names array
* @return Story annotation object
*/
Stories getStoriesAnnotation(final String[] value) {
return new Stories() {
@Override
public String[] value() {
return value;
}
@Override
public Class<Stories> annotationType() {
return Stories.class;
}
};
}
开发者ID:allure-framework,项目名称:allure-cucumberjvm,代码行数:21,代码来源:AllureRunListener.java
示例20: getStoryLabels
import ru.yandex.qatools.allure.annotations.Stories; //导入依赖的package包/类
/**
* Construct label for all {@link ru.yandex.qatools.allure.annotations.Stories} annotations
* using {@link ru.yandex.qatools.allure.config.AllureModelUtils#createStoryLabel(String)}
*
* @return {@link java.util.List} of created labels
*/
public List<Label> getStoryLabels() {
if (!isAnnotationPresent(Stories.class)) {
return Collections.emptyList();
}
List<Label> result = new ArrayList<>();
for (String story : getAnnotation(Stories.class).value()) {
result.add(createStoryLabel(story));
}
return result;
}
开发者ID:allure-framework,项目名称:allure1,代码行数:18,代码来源:AnnotationManager.java
注:本文中的ru.yandex.qatools.allure.annotations.Stories类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论