本文整理汇总了Java中ru.yandex.qatools.allure.annotations.Stories类的典型用法代码示例。如果您正苦于以下问题:Java Stories类的具体用法?Java Stories怎么用?Java Stories使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Stories类属于ru.yandex.qatools.allure.annotations包,在下文中一共展示了Stories类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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() {
}
示例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);
}
示例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"));
}
示例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();
}
示例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));
}
示例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"));
}
示例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();
}
示例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();
}
示例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));
}
示例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());
}
示例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;
}
};
}
示例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)));
}
示例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)));
}
示例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)));
}