Top Banner
Test Automation with Ranorex studio
43

Test automation with ranorex studio

Apr 15, 2017

Download

Software

Binary Studio
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Test automation with ranorex studio

Test Automation with Ranorex studio

Page 2: Test automation with ranorex studio

АгендаПара слов о себеОбщие сведения о Ranorex StudioФлоу создания и прогона тестаФичи, основные модулиПлюсы/минусыВыводы

Page 3: Test automation with ranorex studio

Коротко о себе

Толкушин ВикторQA Binary StudioWeb/DesktopProtractorRanorex

Page 4: Test automation with ranorex studio

Что такое Ранорекс?● Коммерческое десктоп приложение для

автоматического тестирования UI с помощью имитации действий пользователя

● В нём мы создаём и раним автотесты.● Ядро библиотека (.Net API)● Расширяется с помощью плагинов● Рекордер (аналог Selenium IDE)

Page 5: Test automation with ranorex studio
Page 6: Test automation with ranorex studio

Технологии

Page 7: Test automation with ranorex studio

XPVista7810

Server 2003, 2008, 2012

Page 8: Test automation with ranorex studio

And many more...

Page 9: Test automation with ranorex studio

F

6+

12+

3.6+

5.1+

Page 10: Test automation with ranorex studio

And many more...

Page 11: Test automation with ranorex studio

2.2+

5.1+

Page 12: Test automation with ranorex studio

Из чего состоят тесты?

C# VB.Net

Page 13: Test automation with ranorex studio
Page 14: Test automation with ranorex studio

RanoreXpath Xpath ->

Page 15: Test automation with ranorex studio

Как ищем контрол?

Page 16: Test automation with ranorex studio

1. Жмём 2. Наводим на контрол -> 3. Жмём4. Получаем новый элемент репозитория

/desktop[@processname='explorer']/?/list[@controlid='1']/listitem[@text='Recycle Bin']

Page 17: Test automation with ranorex studio

TESTFLOW

Page 18: Test automation with ranorex studio

1. Придумываем тестовый сценарий2. Рекордим

3. Придумываем тестовый сценарий4. Локализируем элементы 5. Пишем код нашего теста

Ход работы

Page 19: Test automation with ranorex studio

Проверка поиска IMDB

1. Открыть браузер2. Ввести в аддресную строку “imdb.com”3. Ввести в поисковую строку “Apocalypto”4. Нажать на элемент в списке с именем

“Апокалипсис”5. Убедиться, что мы на нужной страничке

(Validation)6. Закрыть вкладку

Page 20: Test automation with ranorex studio

TestImdb.rxrec

Page 21: Test automation with ranorex studio

CloseChromeTab.cs

Page 22: Test automation with ranorex studio

Test suite->

Page 23: Test automation with ranorex studio

Как раним тесты?

Page 24: Test automation with ranorex studio

1. Одни и те же тесты с разными параметрами

2. Из студии3. Запускаем .exe без студии

Bin + build с нашим тест сьютом

Page 26: Test automation with ranorex studio

Результат

Page 27: Test automation with ranorex studio
Page 28: Test automation with ranorex studio
Page 29: Test automation with ranorex studio

Report.rxlog● основан на XSL, XML и HTML - можно открыть в

браузере● Отправить в имейле или расшарить для

локальной сети (IIS Manager)

Page 30: Test automation with ranorex studio

Data-driven approach - CSV XLS SQLКонвертация рекординга в user codeDebug mode (IDE)Recorder waits

Фичи

Page 31: Test automation with ranorex studio

Ranorex SPY

Page 32: Test automation with ranorex studio

SPY - Path editor

Page 33: Test automation with ranorex studio
Page 34: Test automation with ranorex studio
Page 35: Test automation with ranorex studio

Что можно сделать? ● Использование Репозитория● Повторное использование модулей

Page 36: Test automation with ranorex studio

Интеграция

Page 37: Test automation with ranorex studio
Page 38: Test automation with ranorex studio
Page 39: Test automation with ranorex studio
Page 40: Test automation with ranorex studio

Итоги

Page 41: Test automation with ranorex studio

Плюсы:1. Универсальность распознавания элементов2. Повторное использование кода3. Возможности напрямую зависят от уровня

тестировщика4. Быстрое создание новых тестов при наличии

базы шагов5. Удобное использование Xpath 6. GridМинусы:7. Не большое комьюнити по сравнению с open

source аналогами8. Платность

Page 42: Test automation with ranorex studio

Кому будет интересен?

Page 43: Test automation with ranorex studio

Спасибо за внимание :)