Posts

Page Object Model, what is it ?

Image
Page Object Model (POM)   is a Design Pattern that has become popular in test automation for enhancing test maintenance and reducing code duplication. Benefits of using page object pattern : Creating a reusable code that can be shared across multiple test cases. Reducing the amount of duplicated code Duplicate browser action. Duplicate page action. Duplicate element action. If the user interfaces changes, the fix needs changes in only one place. Starting a UI Automation in Selenium WebDriver is NOT a tough task. We just need to: Find elements Perform operations on it Verify the result Example of a simple test ( without implementation of POM) As you can see... all we are doing here is finding elements and filling values for those elements. This is a small script, script maintenance looks easy now, but with time, the test suite will grow and we'll add more and more lines to your code... and things become tough. The main problem with script maintenance is if 10 different scripts ar...

Security Informtion

Image
First of all, we should ask ourselves why is it important to protect information ? Well... we all have secrets... companies, governments and individuals... To help us, our "sages" gave them acronyms, CIA. Confidentiality One of the main issues in confidentiality is: encryption . Encryption is taking information and making it such that even if someone reaches it, he will not be able to understand what is there. For example, in the old and famous encryption of Julius Caesar, the " Caesar cipher ", this algorithm deflects letters, (for example here, a 3 letter offset) the letter A becomes C, and the letter B becomes D, and so on... ZH KDYH WR NLOO MXOLXV FDHVDU which is actually = We have to kill Julius Caesar   Modern encryption types: Today we are using more sophisticated encryption technologies… Symmetric encryption Asymmetric encryption   Example from everyday life : The home door, we encrypt it with a key, and when we return home we decrypt with ...