Posts

Showing posts with the label client server

How to pass **kwargs values from Robotframework to python class

At times its become very confusing how to pass **kwargs values to robotframework. In below post , i will try to explain you , how you can pass your **kwargs value to python class from robot file. Lets suppose we have file Demo_kwargs.py , which accept  **kwargs value from the user. Demo_kwargs.py from subprocess import Popen, CREATE_NEW_CONSOLE,PIPE,STDOUT import time import subprocess import datetime import os class Demo_kwargs: """Demo class""" def __init__(self,**kwargs): self.filters='' self.window_ip = kwargs.get('ip') #print type(self.window_ip) self.window_user= kwargs.get('username') self.window_password= kwargs.get('password') self.dest_path= kwargs.get('Target_path') self.interface= kwargs.get('interface') se...

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...