Вернуться   AXForum > Microsoft Dynamics NAV > NAV: Blogs
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

Опции темы Поиск в этой теме Опции просмотра
Старый 12.03.2019, 18:11   #1  
Blog bot is offline
Blog bot
21,902 / 759 (69) +++++++
Регистрация: 28.10.2006
vanvugt: Indeed UI testing is slow

.. compared to non-UI, or so-called headless, testing.

That was one of the major reasons that the testability framework was added to the Dynamics NAV platform back in 2009 by MS. It replaced its predecessor, the NAV Test Framework (NTF). NTF was a C# based test framework that allowed you to script test in C# against the NAV UI. Having 40+ country versions to handle, and a couple of major releases, running thousands of UI tests took simply too long to check each country-version build. At that time I learned that UI tests roughly take a factor 10 longer compared to an equivalent headless test.

I knew the results and saw the differences at a high level, but I had never, I have to confess, measured it myself. Until recently, working on my book on automated testing in Business Central. And still working on it.

See the test results of a simple scenario populating a lookup field through code (headless) or a TestPage (UI). The average duration of the headless test yielded 0.20 seconds vs. 1.35 seconds for the UI test. Not exactly a factor 10, but quite close to it.

Indeed you will have valid reasons to build UI tests, mimicking on a testpage what a user would do, but I hope you do consider the speed of headless tests and make a balanced spread of your tests over UI and non-UI tests. And you know, testing a process doesn't need UI interactions, in general. And hell, yeah, bear in mind that your test collateral will grow over time, and continue to grow, and thus also the total execution time of all your tests.

Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
vanvugt: To Jan Hoek: Everything you always wanted to know about automated testing in NAV (cont’d) Blog bot NAV: Blogs 0 22.06.2017 13:11
vanvugt: To Jan Hoek: Everything you always wanted to know about automated testing in NAV but were afraid to ask ;-) Blog bot NAV: Blogs 0 16.06.2017 17:11
goshoom: Automated UI testing Blog bot DAX Blogs 0 01.08.2015 12:13
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2009 SP1 Blog bot Dynamics CRM: Blogs 0 11.06.2010 16:33
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2009 Blog bot Dynamics CRM: Blogs 0 04.06.2010 13:21
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Часовой пояс GMT +3, время: 05:36.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.