Tuesday, 19 April 2016

This week 3/2016

It is my first meeting with Selenium. I didn't know how to start, finally I watched and read a few tutorials. Than I installed the Selenium plugin for Firefox. I was looking for a plugin for Chrome but one plugin I found isn't so useful as this in Firefox.
Than I recorded my first test and exported to a Java class. Hm.. I found six different options of exporting my record to Java code. I can choose one of a few frameworks and type of testing path - local or remote. The plugin allow to  generate Java code dedicated for old Selenium libraries bellow 3 version (it is deprecated code in version 2.52) and developing type for future 3rd version of  Selenium libraries (WebDriver).

I tried all possible combinations except dedicated for TestNG framework.
Finally I can compare some common functionality. Below I  present main difference.
Old SeleniumWebDriver
Selenium interface is deprecated and will be removed in 3.x version
Supports regular expressions in disabled native mode/td>Till now I didn't find any way to localise elements by regular expressions by xpath
All actions are accessible by one interfaceFunctionality of old interface is available by a few separated classes


Next my question was, how can I execute a test generated by IDE. Is it possible to run it from maven and what I need to run.
The IDE generated me a simple test class, in which I updated example package path. Class can be executed as unit test. However it is required to have run test environment for pass a test. I found no other way to do it.

Monday, 4 April 2016

This week 1/2016

Today I'd like to get to know what is done in subject of creating unit test for pl/SQL scripts. 4 years ago I created some unit test for my code. I didn't use any framework or tools. It was just a other package with tests.

However I am writing what new I was learned... Today I read article about how to write unit test in Oracle SQL Developer. This part of development has it own tools, which support preparing and rollback data. Collects statistics an probably much more. However writing unit test in pl/SQL is something unusual and most developers don't do that. Even PL/SQL developers.

Second subject is testing AngularJs UI. As I checked it is possible to test UI with ProtractoJS. Protractor can execute connection and even do snapshot. I haven't tried yet but it looks promising.