Skip to content

Final project#15

Open
Hanarlo wants to merge 18 commits into
masterfrom
Final-project
Open

Final project#15
Hanarlo wants to merge 18 commits into
masterfrom
Final-project

Conversation

@Hanarlo
Copy link
Copy Markdown
Owner

@Hanarlo Hanarlo commented Mar 26, 2024

No description provided.


public WebDriver getDriver() {
if (driver == null){
WebDriverManager.chromedriver().driverVersion("123.0.6312.58").setup();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хотелось бы видеть WebDriverManager без конкретной версии

Comment thread src/test/java/api_tests/RestTests.java Outdated

@BeforeClass
public void setUpMethod(){
key = System.getProperty("apiKey");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А почему перед каждым тестовым классом? Не достаточно перед всеми тестами?

return new RequestSpecBuilder()
.setBaseUri("https://app.testiny.io/api/v1/")
.setContentType(ContentType.JSON)
.addHeader("", "4pZB6aUsSUYngWiEopPYvr5bm5aJy55g6gfFHcxEyi7o6E9m")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что это за страшный номер? и почему он захардкожен?

Comment thread src/test/java/pages/TestCasesPage.java Outdated
//DELETE CASE
private final By testCaseNameLocator = By.xpath("//td//span[contains(text(), 'test')]");
private final By buttonMoreLocator = By
.xpath("//span[contains(text(), 'test')]/../../../td//button[@data-testid='button-more']");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Страшный xpath - переделать используя оси

new File(Objects.requireNonNull(ProjectSettingsStep.class.getClassLoader().getResource("R.jfif")).toURI());
StringSelection str = new StringSelection(file.getAbsolutePath());
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(str, null);
Thread.sleep(1000);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sleep???? Без него никак?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants