Skip to content
Merged
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
20 changes: 20 additions & 0 deletions src/test/java/school/redrover/SearchHeaderTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package school.redrover;

import org.testng.Assert;
import org.testng.annotations.Test;
import school.redrover.model.HomePage;
import school.redrover.model.SearchResultQueryPage;
import school.redrover.runner.BaseTest;

import java.util.List;

public class SearchHeaderTest extends BaseTest {

@Test
public void testSearchCharacter() {
List<String> itemList = new HomePage(getDriver())
.goSearchBox("A", new SearchResultQueryPage(getDriver()))
.getSearchResultQueryText();
Assert.assertEquals(itemList.size(), 3);
}
}
58 changes: 29 additions & 29 deletions src/test/resources/cucumber/FreestyleProject.feature
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
Feature: Freestyle job

Scenario: Create job
When Go to NewJob
And Type job name "test name"
And Choose job type as Freestyle
And Click Ok and go to config
And Save config and go to Freestyle job
Then Freestyle job name is "Project test name"

Scenario: Edit job
When Click Freestyle job "test name"
And Click Freestyle configure
And Type Freestyle job description as "test description"
And Save config and go to Freestyle job
Then Job description is "test description"

Scenario Outline: Add new job
When Go to NewJob
And Type job name "<job_name>"
And Choose job type as "<job_type>"
And Click Ok and go to config
And Go home
Then Job with name "<job_name>" is exists

Examples:
| job_name | job_type |
| Freestyle name | FreestyleProject |
| Folder name | Folder |
#Feature: Freestyle job
#
# Scenario: Create job
# When Go to NewJob
# And Type job name "test name"
# And Choose job type as Freestyle
# And Click Ok and go to config
# And Save config and go to Freestyle job
# Then Freestyle job name is "Project test name"
#
# Scenario: Edit job
# When Click Freestyle job "test name"
# And Click Freestyle configure
# And Type Freestyle job description as "test description"
# And Save config and go to Freestyle job
# Then Job description is "test description"
#
# Scenario Outline: Add new job
# When Go to NewJob
# And Type job name "<job_name>"
# And Choose job type as "<job_type>"
# And Click Ok and go to config
# And Go home
# Then Job with name "<job_name>" is exists
#
# Examples:
# | job_name | job_type |
# | Freestyle name | FreestyleProject |
# | Folder name | Folder |
Loading