Tellurium Selenium code example
Last week I introduced tellurium selenium as an automation framework, part of the selenium integration. As I promised in previous article to come with some code example for the tellurium selenium tests and tellurium UI module.
As I’m a very practical guy I will try to explain why I like Tellurium, basically it simplifies the why you can write your tests and comes with an UI module that you don’t have to build from scratch.
Tellurium Selenium is a very good alternative for those of you who are used with frameworks in dynamic languages like ruby capybara. Tellurium is a very good option for those who doesn’t want to spend to much time in how to deal with browser session and how to share browser instance between step definitions.
Tellurium Selenium: Initial test example
Tellurium Selenium: UI Module example
The Tellurium UID description language (UDL) provides more flexibility to define dynamic web content.
Tellurium Selenium : Converted test
How does Tellurium works:
- First, the Tellurium Core converts the UI module into a JSON representation.
- The JSON representation is then passed to the Tellurium Engine for the first time when the UI module is used.
- The Tellurium Engine then uses the Santa algorithm to locate the whole UI module and put it into a cache.
- For the subsequent calls, the cached UI module is used instead of re-locating them again.
- In addition, the Tellurium core combines multiple commands into one batch called a macro command and then sends the batch to the Tellurium Engine in one call. This reduces round trip latency.
There are advantages and disadvantages in using Tellurium selenium, Im not gonna enumerate here , I will let you find out whats best fro your project. It’s better to explore on your own corner cases about a framework and what defines you and your team better.
The post Tellurium Selenium code example appeared first on TestingRepository.