JUnit Selenium Webdriver Tutorial 06 (JUnit Assertions) | QAShahin

preview_player
Показать описание
JUnit Selenium Webdriver Tutorial 06 (JUnit Assertions) | QAShahin

Java JUnit WebDriver video tutorial on writing JUnit Assertions with WebDriver tests.

Resources:
Introductory music:

Introductory video background:
Рекомендации по теме
Комментарии
Автор

Hi,
I have a question regard to this video, you mentioned will return true". After I double checked with "String str = driver.findElement(By.name("name_field")).getText();", and you are right, str = "".

So my question/confusion is why str doesn't have a value? My understanding is we already typed some value inside of the "name_field', so if you try to getText() from the field, we should expect to get "test name" from it.

xihongshixie
Автор

I assume that JUnit is overloading the Java assert method. I just shared your channel on youtube, so you might pick up a few more subscriptions.

EricThomson
Автор

Hi,
Thanks for the upload. 
does anyone know, how to:
1- Make sure code goes to all assertion ( if the first assertion fails the code doesn't go to the next assertion)
2- how to save the assertion result in the cucumber report

BehrangBina
Автор

Hey nice video but small doubt... In Asserequlas(expected, actual) statement you gave wrong inputs expected should be contact confirmation and actual should be as "get title"

midhunnaidu
join shbcf.ru