forked from BugorDmitriy/OpenWeatherJavaProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestData.java
More file actions
69 lines (58 loc) · 5.45 KB
/
Copy pathTestData.java
File metadata and controls
69 lines (58 loc) · 5.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package pages;
import org.testng.annotations.DataProvider;
public class TestData {
@DataProvider(name = "TopMenuTestData")
public static Object[][] topMenuTestDataProvider() {
return new Object[][]{
{0, "Logo", "/", "https://openweathermap.org/", "Сurrent weather and forecast - OpenWeatherMap"},
{1, "Guide", "/guide", "https://openweathermap.org/guide", "OpenWeatherMap API guide - OpenWeatherMap"},
{2, "API", "/api", "https://openweathermap.org/api", "Weather API - OpenWeatherMap"},
{3, "Dashboard", "/weather-dashboard", "https://openweathermap.org/weather-dashboard", "Weather dashboard - OpenWeatherMap"},
{4, "Marketplace", "https://home.openweathermap.org/marketplace", "https://home.openweathermap.org/marketplace", "Marketplace: History Bulk, History Forecast Bulk, Historical Weather Data by State for all ZIP codes, USA - OpenWeather"},
{5, "Pricing", "/price", "https://openweathermap.org/price", "Pricing - OpenWeatherMap"},
{6, "Maps", "/weathermap", "https://openweathermap.org/weathermap", "Interactive weather maps - OpenWeatherMap"},
{7, "Our Initiatives", "/our-initiatives", "https://openweathermap.org/our-initiatives", "Our Initiatives - OpenWeatherMap"},
{8, "Partners", "/examples", "https://openweathermap.org/examples", "Partners and solutions - OpenWeatherMap"},
{9, "Blog", "https://openweather.co.uk/blog/category/weather", "https://openweather.co.uk/blog/category/weather", "Blog - OpenWeatherMap"},
{10, "For Business", "https://openweather.co.uk", "https://openweather.co.uk/", "OpenWeather for business - OpenWeatherMap"},
{11, "Sign In", "/users/sign_in", "https://home.openweathermap.org/users/sign_in", "Members"},
};
}
@DataProvider(name = "ApiIconsMainPage")
public static Object[][] apiIconsTestDataProvider() {
return new Object[][]{
{0, "current\nweather", "(current)", "/current", "https://openweathermap.org/current", "Current weather data - OpenWeatherMap"},
{1, "hourly\nforecast", "(4 days)", "/api/hourly-forecast", "https://openweathermap.org/api/hourly-forecast", "Hourly Weather Forecast 4 days - OpenWeatherMap"},
{2, "daily\nforecast", "(16 days)", "/forecast16", "https://openweathermap.org/forecast16", "Daily Forecast 16 Days - OpenWeatherMap"},
{3, "climatic\nforecast", "(30 days)", "/api/forecast30", "https://openweathermap.org/api/forecast30", "Climate forecast for 30 days - OpenWeatherMap"},
{4, "historical\nweather", "(1 month, 1 year)", "/history", "https://openweathermap.org/history", "Historical weather API - OpenWeatherMap"}
};
}
@DataProvider(name = "FooterMenuData")
public static Object[][] footerMenuTestDataProvider() {
return new Object[][] {
{0, "Current and Forecast APIs", "/api#current", "https://openweathermap.org/api#current", "Weather API - OpenWeatherMap"},
{1, "Historical Weather Data", "/api#history", "https://openweathermap.org/api#history", "Weather API - OpenWeatherMap"},
{2, "Weather Maps", "/api#maps", "https://openweathermap.org/api#maps", "Weather API - OpenWeatherMap"},
{3, "Weather Dashboard", "/weather-dashboard", "https://openweathermap.org/weather-dashboard", "Weather dashboard - OpenWeatherMap"},
{4, "Widgets", "/widgets-constructor", "https://openweathermap.org/widgets-constructor", "Weather widgets constructor - OpenWeatherMap"},
{5, "How to start", "/appid", "https://openweathermap.org/appid", "How to start to work with Openweather API - OpenWeatherMap"},
{6, "Pricing", "/price", "https://openweathermap.org/price", "Pricing - OpenWeatherMap"},
{7, "Subscribe for free", "https://home.openweathermap.org/users/sign_up", "https://home.openweathermap.org/users/sign_up", "Members"},
{8, "FAQ", "/faq", "https://openweathermap.org/faq", "Frequently Asked Questions - OpenWeatherMap"},
{9, "Our technology", "/technology", "https://openweathermap.org/technology", "Weather model - OpenWeatherMap"},
{10, "Accuracy and quality of weather data", "/accuracy-and-quality", "https://openweathermap.org/accuracy-and-quality", "Accuracy and quality of weather data - OpenWeatherMap"},
{11, "Connect your weather station", "/stations", "https://openweathermap.org/stations", "Weather Stations - OpenWeatherMap"},
{15, "About us", "/about-us", "https://openweathermap.org/about-us", "About us - OpenWeatherMap"},
{18, "Ask a question", "https://home.openweathermap.org/questions", "https://home.openweathermap.org/questions", "Members"}
};
}
@DataProvider(name = "ExternalFooterMenuData")
public static Object[][] externalMenuTestDataProvider() {
return new Object[][] {
{13, "Privacy Policy", "https://openweather.co.uk/privacy-policy", "https://openweather.co.uk/privacy-policy", "Privacy policy - OpenWeatherMap"},
{16, "Blog", "https://openweather.co.uk/blog/category/weather", "https://openweather.co.uk/blog/category/weather", "Blog - OpenWeatherMap"},
{17, "OpenWeather for Business", "https://openweather.co.uk/", "https://openweather.co.uk/", "OpenWeather for business - OpenWeatherMap"},
};
}
}