Posts

Showing posts from January, 2018

How to communicate between two windows machine and executing command on remote machine

Image
I am working as an  Automation engineer and using Python and Robot framework to do my tasks in hand.Recently i had requirement in my project to make communication between two windows machines and execute command on remote machines.  For Linux machines we have ssh client/Server software installed by default , in windows we don't have ssh. I tried with  three options on windows 1)      Pywinrm – Unstable, bug prone. its a python library 2)      Winrm –  Its windows default functionality to communicate with other windows machine , looks bit complicated to use 3)      Paramiko  -one need to  install free SSH client software, however this has its own limitation when you are trying to configure it After trying above , i came across with pstools   Advantage 1)  This need not to be installed at remote desktop, so remote machine would be untouched 2)   it is super easy to use 3)   comes with lots of supportive tools like pslist,pskill to ease out t

How to start with APPIUM PYTHON

What is Appium ? Appium works like a server, written in Nodejs and implements selenium webdriver . it allows the client (test cases written in any language, Python in our case ) to fire the tests and the target application ( Apps) acts like a web page . Target application sends back the response to node js server which in turn send it back to client. here is an excellent link which can help you to understand the basic concept of appium in more details https://nishantverma.gitbooks.io/appium-for-android/appium/why_appium.html To start working  with appium you dont need an extensive study of it. Android SDK You need to install android SDK as it provides many set of tools to help in automation, one such tool is  adb , it detect your mobile devices, assign device id to them, which will be referenced by your scripting language for further communication with appium. Client Third point is your scripting language i.e. Python You need to define test cases for your test scenari

How to use custom library in Robot Framework

Image
RobotFramework have rich set of libraries to do all the necessary tasks, but sometimes we are not that much familiar with the library and we want to write our own method and want to import that method as a library in RF. Let me take an example here, suppose you have a CSV file data.csv Name,Age,region,country,Marks pankaj,22,delhi,india,45 neeraj,32,noida,india,75 Task is to find value of 2nd Row and 3rd Column from a Robot Script. How one like to proceed from here ?. There are two options to do this 1. Using existing Libraries developed by other users you can use libraries created by other users and see if that solves our purpose e.g. for this use-case you can search some csv library for robotframework available in git hub These libraries have enough documentation and example to download and use them.  2.Creating our own library to do the task if you are well versed in python or java and if you know how it can be done in your preferre