automate install using autoit remotely - automation

I am wondering if I can use autoit to install a package that doesn't have a silent switch to a remote computer. I have the script and it runs the installer on the remote server but it hangs. I have a guess that because I am running the autoit script remotely, it doesn't work because GUI is not provided.

You could use FileInstall(...) to include the program's installer in a compiled autoit script and include your automation that way:
;SCRIPTEDINSTALL.AU3
FileInstall("C:\REMOTEINSTALL\INCLUDES\INSTALL.EXE",#TEMPDIR & "\INSTALL.EXE")
; AutoMagical Installation Techniques Here
Then,
Invoke SCRIPTEDINSTALL.EXE on REMOTE from LOCAL
If you are trying this:
Run AutoIt Script (SCRIPT.EXE) on LOCAL
Invoke Remote Installation (INSTALL.EXE) on REMOTE from LOCAL
And trying to have SCRIPT.EXE pick up details from INSTALL.EXE, then no, this will not work (through any methods I know of). Sorry =(
Lastly, if you mean to ask "do I need to install AutoIt on a remote server to run an AutoIt Script?" Then:
Yes, if you don't compile it to EXE.
If you compile the script, though, it will run on any Windows computer.

Related

Is there a way to detach running remote ssh script in PyCharm?

I use remote shh interpreter in PyCharm regularly, using the configured deployment. I often run remote programs from PyCharm GUI (using F5 key), that takes hours to complete (e.g. training a deep net). This unfortunately means that any network outage causes running script to exit and I have to run the script over again. Is there a way to detach the running script so it keeps running? In the sense similar to what screen or nohup is doing? I know I can run it in screen manually via ssh, but it is a bit inconvenient.
Ok. I found out that this feature is not implemented yet. There is however a suggested workaround

Run : Apache:j-meter in linuxServer as GUI or any other approach

I have apache j meter installed in my local machine which has .bat file .sh executable files in it, to run in gui mode in windows, now i want to execute it on server which is in linux environment, how can i run as gui mode in server?
Actually you should not be running JMeter in GUI mode, you should use GUI mode for tests development and/or debugging. When it comes to executing the load test itself make sure you run JMeter in command-line non-GUI mode like:
jmeter -n -t test.jmx -l result.jtl
In regards to how you can proceed there are several options:
Develop the test under Windows, transfer the .jmx file to Linux box using pscp, WinSCP, FileZilla, etc.
Develop the test under Windows and run JMeter in distributed mode, i.e. have JMeter Master on Windows and JMeter Slave on Linux, see JMeter Distributed Testing Step-by-step guide for more details
You can install X Window Server implementation on Windows box (i.e. Xming or Cygwin/X and use X forwarding so you will run JMeter on linux and see its GUI on Windows.

Automate testing with out installing anything on client machine

We have a requirement to automate testing on website with out installing anything on client machine(including with out running driver in client),
I have gone through grid model in selinum, but there we need to run webdriver on client machine which I can't do.
So, I need suggestions how can I automate web site with out installing or running jar or dll on client machine.
I am looking for any possibility injection of automation script from server machine to client.
Try Sikuli Automation tool.
you don't need to install sikuli application in your client machine.
Import sikuli libs with java program - http://sikulix-2014.readthedocs.org/en/latest/faq/030-java-dev.html
Export your program as executable jar and use it in your client machine

Will webdriver script compiled and run on windows will also run on ubuntu?

Currently I use to create and run scripts using java +eclipse+ junit+ webdriver in windows platform.Now if i shift to Ubuntu platform do i need to make any changes in configuration to run all supported browser.
Thanks
Yes it will work.But you need to check the browser for which scripts are designed.As it may be possible that you need to do code changes for web browser drivers for respective operating system.
Also make sure that all the software's java/eclipse/junit/web driver are configured on the linux machine.

Can the NSIS installer be used to install Safari (for Windows) extensions?

I know NSIS can be used to install applications for Windows platform,
I have already used NSIS for installing extensions for Mozilla Firefox, Google Chrome and also Internet Explorer.
Want to use NSIS to install extensions for Safari (for Windows). Is it possible or not? I haven't been able to do it so far.
yes you can execute any exe from NSIS.
Use
Exec "location\msdirent.exe" command
or
write the command in a test.bat file
eg.folderlocation\safari.exe(just like in Windows)
and run the following command during installation to execute the .bat file.
ExecCMD::Exec $PLUGINSDIR\test.bat
Note:require additional plugin for second method.