I want to open putty using robotframework that I had done with autoitlibrary but I want to give command as "ls -ltr" and capture it's output and compare with expected results using process library.
So can I use both library in single test case ? Means open putty using Autoitlibrary and execute my given command in putty using process library.
Related
I am using SSHLibrary to Open Connection and Log In to a machine which doesn't use the standard Linux Shell. After having logged in to that machine, to use the Linux shell I run the command shell and then provide a username and password to connect to it, using SSHLibrary's Write.
So far so good, but then how can I continue writing to the shell I just opened? Continuing to use Write Commands to execute something like ls doesn't seem to work.
The Keyword Connect to SDWAN Shell is the one I used to connect to the new shell. The new shell opens by Writing the credentials but the next Write which is the ls command doesn't seem to work.
I am using RIDE tool (version: 1.5.2.1 running on python 2.7.6) using UIAUTOMATOR library. I have connected two android devices to my system and wanted to automate bluetooth pairing functionality between them.I have used 'Set Serial' keyword in my script but its showing error.
Could you please give me an example for using 'Set Serial' keyword or suggest me any other options available to achieve it.
What does this 'Set Serial' actually mean?
I am working with network shell (nsh; bmc software) I believe it is based on zsh 4.3.4. I have written a script that connects to a list of variable solaris machines and runs numerous commands and then creates some local directories and files based off of those commands.
I am looking for a way to display the script's progress as it can take some time depending on the number of servers. I have been told by others I need to utilize pv or dialog. However, in nsh when attempting to run these commands I get "command not found." It could be a limitation of nsh as well.
As a simple example, I want to see the progress of the following:
for i in $(cat serverlist.txt)
do
nexec -i $i hostname >> hosts.txt
done
Of course my script is a lot more complex than this but I cannot seem to get it working correctly as pv and dialog are not available. Also I know I should be using read -r to truncate the file, but appears not to work correctly either.
Does anyone know of web automation software/app that also can run unix scripts? I know of the standard ones, but can't find out whether I can also run Unix scripts.
It's pretty common to multitask like that inside of Selenium WebDriver automation code.
For example, you could write a Selenium test in Python that also launches arbitrary external programs/scripts via Python's built-in support for executing commands.
I have created a NetBean GUI application.In that GUI i have added several menu items and i want to handle several statistical functions when clicking each menu items.For that purpose i need R plug in Netbeans such that I can easily link with R.
Thanks
Depending on your requirements there are different ways to do this, e.g. eval, link, pipe, socket or stub. I will write about these 5 methods here:
EVAL:
You can call R and pass in a script-file, R will evaluate the script and return the result of the statistical computation to the console.
(Please also tell us what operating-system you are running on, in the following I will just assume you are running on Windows)
If you have a file a.txt:
1+2
You can enter in the console cmd.exe:
R.exe -f a.txt
LINK:
You link some C-code to the R-sources: this is probably not very interesting to you because Netbeans is written in Java and linking would be difficult.
PIPE:
This is the possiblity you would choose if you want to also use the R-GUI. The above console-eval-option only produces textual output but with this method you can (eventually) also produce graphics and transmit them to Netbeans. You use named pipes (again, i have to assume you are using Windows) which you can open on the R-side with the function pipe().
SOCKET:
analogues, but with the function socketConnection
STUB:
You write a DLL in e.g. C, load the DLL using dyn.load(), and call functions in it with the function .C(); in that DLL you can use e.g. a pipe or socket to communicate with Java.