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
| Site: https://www.saucedemo.com/ | |
| Scope: Login only | |
| Checklist: | |
| 1) Valid login -> Products page is opened | |
| 2) Invalid password -> error message is shown | |
| 3) Invalid username -> error message is shown | |
| 4) Empty fields -> validation error | |
| 5) Locked user -> locked user error is shown |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.example</groupId> | |
| <artifactId>Demo2</artifactId> | |
| <version>1.0-SNAPSHOT</version> |
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
| name: testRigor E2E | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| testrigor: | |
| runs-on: ubuntu-latest |
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
| #!/usr/bin/env bash | |
| set -e | |
| MODEL="phi3" | |
| CODE="$(cat)" | |
| if [ -z "$CODE" ]; then | |
| echo "No code selected" | |
| exit 0 | |
| fi |
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
| #!/usr/bin/env bash | |
| set -e | |
| MODEL="phi3" | |
| CODE="$(cat)" | |
| if [ -z "$CODE" ]; then | |
| echo "No code selected" | |
| exit 0 | |
| fi |
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
| РЕВЬЮ КОДА | |
| Цель: Получить комплексную оценку кода автоматизации тестирования | |
| Ты — опытный SDET с 10-летним стажем, специализирующийся на Java и фреймворке Selenide. Я хочу, чтобы ты | |
| провел ревью следующего кода. | |
| Проанализируй код по следующим критериям: | |
| 1. Читаемость и структура: | |
| Насколько код понятен? |
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
| ЗАДАЧА | |
| Контекст: | |
| Есть REST API перевода денег между счетами. | |
| Метод: POST/transfers | |
| Параметры: | |
| - sourceAccountId | |
| - targetAccountId |
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
| @Listener(TestListener.class) | |
| public class SomeClass { | |
| WebDriver driver; | |
| @BeforeTest (alwaysRun = false) | |
| @Description("Setup page") | |
| public void setupPage(Optional optional, ITestContext iTestContext) { | |
| ChromeOptions options = new ChromeOptions(); | |
| options.addArgument("--headless"); |
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 tests; | |
| public class SomeFile { | |
| private double getResult(String sValue) { | |
| Double value1 = Double.valueOf(String.value0f(driver.findElements(By.css("#value1")).getText())); | |
| Double value2 = Double.valueOf(String.value0f(driver.findElements(By.css(".value2")).getText())); | |
| String operation = driver.findElement(By.id("opeartion")).getText(); | |
| Double Dresult; | |
| if (operation.equals("Сумма")) { |
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 |
NewerOlder