This file contains hidden or 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
package steps; | |
import DTO.ProjectDTO; | |
import io.qameta.allure.Step; | |
import lombok.extern.log4j.Log4j2; | |
import pages.LoginPage; | |
import pages.ProjectsPage; | |
@Log4j2 |
This file contains hidden or 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
package ui.drivers; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.chrome.ChromeDriver; | |
import org.openqa.selenium.chrome.ChromeOptions; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.firefox.FirefoxOptions; | |
public class DriverManager { |
This file contains hidden or 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
Схема базы данных состоит из двух таблиц: | |
Product(maker, model, type) | |
PC(code, model, speed, ram, hd, cd, price) | |
Таблица Product содержит данные о производителе, номере модели и типе продукта («ПК», «Ноутбук» или «Принтер»). | |
Предполагается, что номера моделей в таблице Product уникальны для всех производителей и типов продуктов. | |
Каждый персональный компьютер в таблице PC однозначно идентифицируется уникальным кодом и дополнительно | |
характеризуется своей моделью (внешний ключ, ссылающийся на таблицу Product), скоростью процессора (в МГц) — поле speed, | |
объемом оперативной памяти (в Мб) — ram, объемом жесткого диска (в Гб) — hd, скоростью CD-ROM (например, «4x») — cd и его ценой. |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<div> | |
<h1> | |
<span> Title 1 </span> |
This file contains hidden or 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
import java.sql.*; | |
import java.util.Properties; | |
public class DBConnection { | |
private Connection connect = null; | |
private Statement statement = null; | |
private ResultSet resultSet = null; | |
private static String URL = "jdbc:mysql://localhost:3306/QA28"; |
This file contains hidden or 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
package adapters; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.sun.net.httpserver.Request; | |
import io.restassured.http.ContentType; | |
import io.restassured.specification.RequestSpecification; | |
import models.CreateProjectRq; | |
import models.CreateProjectRs; |
This file contains hidden or 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
package models; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; | |
import lombok.Data; | |
@Data | |
public class CreateProjectRs { | |
@SerializedName("status") |
This file contains hidden or 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
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import org.testng.annotations.Test; | |
import static io.restassured.RestAssured.when; | |
public class HHTest { | |
@Test | |
public void checkHH() { |
This file contains hidden or 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
import io.restassured.http.ContentType; | |
import org.testng.annotations.Test; | |
import static io.restassured.RestAssured.given; | |
import static io.restassured.RestAssured.when; | |
import static org.hamcrest.Matchers.equalTo; | |
import static org.hamcrest.Matchers.hasItem; | |
public class PetStoreTest { |
This file contains hidden or 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
import io.restassured.http.ContentType; | |
import org.testng.annotations.Test; | |
import static io.restassured.RestAssured.given; | |
import static io.restassured.RestAssured.when; | |
import static org.hamcrest.Matchers.equalTo; | |
import static org.hamcrest.Matchers.hasItem; | |
public class PetStoreTest { |
NewerOlder