Skip to main content

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, working tree clean

Comments

Popular posts from this blog

The pesky scrollbars on Remote desktop - Finally fixed!!

  The problem We always had scrollbars (vertical as well as horizontal) when we connect to remote desktop (eg: nftRunbox01). This meant we had to scroll up and down many times to work on rotheram environments.  Full screen was an option, but we wanted to see the taskbar as well as the messages from skype (Paul). I remember my colleagues would not allow pairing unless the scroll bar issue was fixed. :)  We ended up editing rdp files and what we tried to do was... desktopwidth:i:1437 desktopheight:i:865 session bpp:i:24 winposstr:s:0,1,0,20,1437,865 We changed the winposstr values so that horizontal and vertical scroll bars disappear. This was a trial and error method and consumed a lot of time (10 to 15 mts). I looked at a few open source projects and found a project on sourceforge which solved the problem. I was still looking for a way (easier) to solve the scroll bar issue. Solution Just add the following line to your .rdp file. smart sizing:i:1 Old RDP File desktopw...
 I worked on UI Automation using Cucumber, Java and Selenium in a company ( company name hidden due to confidentiality agreement). After creating the framework completely, when it was time to deploy to pipeline, I found we don't have devops team in the company. The devs were helping out by doing devops work in addition to their normal duties. They explained that they can help with C# code ( basically .Net core deployments into agents), but could not help maintaining agents which run JVM ( for Java code). It was time to switch to C#. I found Specflow is a C# implementation of Cucumber and we need Visual Studio ( Professional at least) to continue the work. The management at the highest level were very supportive and they were willing to spend the money and give me all the support to rewrite the entire framework in C#. It was time to make Automation a success in the company. And it was going to be more thrilling than any movie we can imagine with all the twists and turns.

API Testing with Rest Assured - Validating the json schema

Sometimes you would get a json response while testing web applications. To make sure that all fields are present, but at the same time keeping the tests generic, you might write something like this given below.(although, a newbie way of writing tests)  @Category(RegressionTests.class)     @Test     public void verifyResponseByValidatingPresenceOfAllFields() {         given().                 param("product", "HomeLoan").                 param("fromHomeLoanId", -100).         when().                 get("/loans").         then().                 statusCode(200).                 contentType(ContentType.JSON).                 body(containsString("loans"))....