Posts

Showing posts from February 4, 2018

Webdriver io - Part 1

I have been using webdriverio to run selenium ui tests. When I joined the project, i found the code in the following format. I will provide a brief overview of the improvements I did, to make the code more readable and maintenable. It could help people who are joining projects with existing code bases and need to continue working on them. The sample code provided below has been changed so that it is anonymous, but is still useful for instruction purpose. describe('Loan Application UI', function () {     var infoTextElement, YellowBtnElement, RedBtnElement, contactElement, landingPageTextElement,         RedSignInBtnElement;     infoTextElement = 'h3';     RedBtnElement = 'button:nth-child(3)';     YellowBtnElement = 'button:nth-child(2)';     landingPageTextElement = 'h2';     RedSignInBtnElement = '#LoanApplicationSelected>div>button';     contactElement = '#BizDetails ...

Using git

In the current scenario of software development and testing, git has become a core component in many projects. Being truly distributed and free, it is one of the best open source distributed version control systems. Here are a few commonly used commands of git. git status: Gives the current status. C02VM0HWHTD8:Beepy manoj.tharayil$ git status On branch 1712_Create_UI_tests_for_ledger_endpoint git stash:  Saves all your changes so that you can work on a fresh ( current) copy which is in server. C02VM0HWHTD8:Beepy manoj.tharayil$ git stash Saved working directory and index state WIP on 1654_Create_api_tests_for_ledger_endpoint-review: 67635081 #1654: Review comment regarding formatting fixed. IDE's have UI for committing and pushing your changes to git server. But if you want to do it from command line, the command is given below. git commit: C02VM0HWHTD8:Beepy manoj.tharayil$ git commit On branch 1712_Create_UI_tests_for_ledger_endpoint nothing to commit, wor...