ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Selenium IDE-02

Selenium-IDE

SeleniumIDE

Assertion commands

verify commands

wait commands

Assert vsVerify commands

run test suite

Автор: MadhukarQAIT

Загружено: 2020-06-07

Просмотров: 739

Описание: #SeleniumIDE#WebDriver#Selenium
Selenium IDE-02
*****************
Agenda:
Enhancement in the Script
Validation commands
Stored commands
Wait commands
Synchronization
Debugging Test Script
Execution Types
When to use Selenium IDE and WebDriver
Limitations of Selenium IDE
========================================
Enhancement in the script:
After creation of basic script to perform required transactions on AUT we do
enhancement in the script in order to validate actual values in AUT
We can use following commands in Selenium IDE:
-Validation commands
-Stored commands
-Wait commands
1.Validation commands:
Using these commands we can verify actual values in application,
there are 2 categories of commands
a. Assert commands
b. Verify commands
a. Assertion Commands:
Using Assert/Assertion commands we can verify specified value/webelement availability in a page
Based on specified value/webelement availability it will give the status of test
Pass/fail, if it is failed then execution will be terminated

Following are the some of Assertion Commands:
i. Assert Element Present: to check specified webelement present or not in a page
ii. Assert Title: to check title of the page
iii. Assert Text: to check the text value in webelement
for Practice:
Ex-1: Create script to check “Forgot your pwd” link working or not in Sales Force application login page using Assert command
Ex-2: Create script to validate Login functionality in mercury Tours application using assert command

b. Verify commands:
These are used to check webelement/value is present in application or not
Based on specified webelement/value availability it will give the
status Pass/fail and continue the script execution irrespective of the status
Ex:
i. verify Element Present: to verify specified webelement present in a page or not
ii. Verify Text: to check the Text in webelement
iii. Verify Title: to check the title of the page
For Practice:
Ex-1: Create script to check “Register” link working or not in Mercury Tours application using verify command
Ex-2: Create script to validate Login functionality in mercury Tours application using Verify command

Stored and Echo command:
i. store: command is used to store value in a variable
ii. store Value: to read arguments from Edit box
iii. store text: to read visible text of webelement
iii. store Title: to read the current page title
iv. store Alert: to read text displayed in the alert
v. echo: command is used to print a string value or value which is available in variable

Note:
Variables are enclosed within a ${var_name} when being printed or used on elements
For Practice:
Ex: create script in Selenium IDE to read page title before & after login operation in www.facebook.com application

Ex-Create script for Orange HRM project
Navigate URL
Check for username element availability
Perform login operation
Verify page title is “OrangeHRM” or not
Read and print page title
Click on “welcome Admin” link
Click on “Logout”

Synchronization in Selenium IDE:
To pause script execution for some time we can use following synchronization commands i.e.default time is 30sec.
i. Wait For element present  Wait up to the webelement present in page
ii. Wait for text Wait up to the specified webelement lable/text is displayed

Debugging test scripts:
Once scripts are created then we need to perform debugging to check script will run smoothly or not and to identify any logical errors in the script by using Breakpoint and set Start point
Breakpoint:
It will break the execution at that statement where we used breakpoint
Set Start Point:
Using this option we can set execution point from required statement in the script

Execution types:
There are 2 types of executions
1. Play current test case:
Using this option we can execute selected test case only
2. Play the entire Test suite
Using this option we can perform test batch execution
Sequential execution of test cases based on functionality flow in application is called as Test Batch execution

Q. when to use Selenium IDE and WebDriver
In following scenarios we use Selenium IDE:
Scenario-1: to check whether the application is compatible with selenium for automation
Scenario-2: while creating scripts in WebDriver, if we have any difficulty to identify locators (i.e. Webelement properties)
Scenario-3: to change script into different languages
To automate complete project we prefer WebDriver

2. Explain what are the limitations of Selenium IDE?
-It supports only Firefox & chrome browsers only
-We can’t use Conditional and Loop statements
-We can’t parameterize script
-Reading data from external files like .txt, .xls and DB is not possible
-Can’t generate the customized reports
-Exception handling is not present

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Selenium IDE-02

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]