Is there a way to run AutoIT scripts on BrowserStack? - autoit

Usually I make use of AutoITscript to upload a file in the Windows dialog box. This is useful while testing on Local Machines on any browsers. But,since I have now moved to use BrowserStack to tun my tests on cloud, I am finding it difficult to run the AutoIT script on the remote browser. Any help in this regards is much appreciated.
Thanks!
Note :I cannot directly enter the file path in the web UI as its disabled and the only way is to open the Windows dialog and browse to the actual path,which I used to do using the AutoIT script.

Related

Is it possible to execute karate robot scripts on virtual desktops (VDI)?

Here I have a scenario where I need to upload a file by clicking on the upload button on the UI application. I have tried using the driver.inputFile but, it is not working for this kind of button. So, I have used the karate robot functionalities as mentioned in How can I upload a PDF file using Karate UI Automation? and, it has worked fine in my Local machine. But when I tried to implement the same functionality on the VDI robot framework has failed abruptly. I know it can be done by "multipart file" Since it is UI automation, I need to be accurate on that upload functionality using the user interface.
Any help would be appreciated and that will save my day.
Thank you.

Is it possible to use Autoit to operate on a Remote Desktop?

I need to automate actions I do on a Remote Desktop. The au3recoder (which comes with Autoit) doesn't seem to record anything on the RDP.
Yes, Autoit works on RDP machines if you execute the file on that machine. If you want to use it from your own PC over the RDP connection that could get difficult.
You can't detect windows over RDP what makes most of the AutoIt functions useless.
You could click on positions with MouseClick(). It's not the most elegant version but it works for little things.
The Au3 Recorder never worked for my anyways, so you could also hardcode it yourself.
I recomend that you copy a file to your RDP machine to use all AutoIt functions.
Of course it is possible.
And you could use most of the "AutoIt" functions because they are C++ functions which windows have them all.
The most accurate way to do it is to use CMD through AutoIt to get most of the informations.
However the most elegant way would be using PowerShell.

How to run automated GUI tests on a remote headless ESXi Virtual Machine?

I'm trying to setup automated GUI tests in ESXi Virtual Machines using TestComplete. The problem, as I understand it, is that when no remote desktop connection is made to the ESXi virtual machine, then it is impossible for TestComplete to perform screen captures and therefore automate the GUI testing. As far as I understand it, this is due to the fact that Windows does not generate any user interface when nobody is viewing it.
I'm sure other have experienced this problem. How did you solve it ? Are you using a third party computer which automatically launch remote desktop connections prior to running the tests ?
Would it be possible to launch a remote desktop from a head-less virtual machine to another to fake somebody viewing ?
Any other smarter solutions I haven't thought about ?
You should be able to log in to Windows on the VM's console using the vSphere client, then close vSphere, and Windows will still believe the user is viewing the console. Simple as that. :)
So there shouldn't be a need to involve remote desktop in the mix.
As long as your tests then run as that logged-in Windows user, you should be fine.
This technique has always worked like a charm for me with certain Watir, Selenium, and MS UI Automation tests that depend on having an interactive desktop.
If you need to reboot the VM automatically before/during the test, instead of logging in manually in the vSphere client, you can make Windows log in as an arbitrary user automatically - check the "control userpasswords2" command, or you can use the Sysinternals app "Autologin":
http://technet.microsoft.com/en-us/sysinternals/bb963905
Only catch with this technique is that you need to be able to launch your tests while not viewing the console on the VM, but it sounds like you've already taken care of that?
If you need a solution for launching your tests remotely, I highly recommend using Jenkins or Hudson to kick off tests/collect results from the VM. Jenkins has changed my life in this regard.
You may consider using the Network Suites functionality of TestComplete:
http://smartbear.com/support/viewarticle/16849/
It can open Remote Desktop connections on its own, control tests on remote PCs, and pull the logs back to the "master" project. This feature is designed to be used for distributed tests, and looks like it's just what you need.
As for opening RDP to a head-less VM, it should not be a problem - it's up to Windows to "think" about this. You just open RDP and it works even if there is no monitor attached to the remote PC/VM.
I hope this helps,
Alex
You can always use VNC with checking the option "Do nothing" when disconnecting viewer. This way you'll trick windows to generate the image.

OpenLayers - dynamic POI example does not work on my machine

OpenLayers has a good example which I would like to reuse:
http://openlayers.org/dev/examples/dynamic-text-layer.html
But when I download it and run on my machine, it does not work.
It also does not work when I download
OpenLayers-2.10.zip from openlayers.org site, unpack it on my machine and run this example.
When I say "does not work" I mean the map is displayed but there are no POIs/markers/popups.
I use windows XP.
It seems this example does NOT use proxy.cgi.
Could you please help me?
What I am doing wrong?
Thank you in advance
Maxim
The example you are trying to run is reading points from a text file(textfile.txt) that is fetched asynchronously. In order to get this work you have to run this code on a webserver. I guess you are running code directly from filesystem, i.e. doubleclick dynamic-text-layer.html file.
You could install Visual Studio 2010 express which is free. It has built in webserver so you will only have to open OpenLayers 2.10 map as a Web Site and push "Run"

How does Adobe CONNECTNOW load and run acaddin?

I am looking for options to download, Install and run a custom plugin/add-on(an exe or an installer) from my Flash Movie similar to how the connectnow does that?
When we initiate the screen sharing for the first time, connectnow prompts us for mandatory add-in by showing the message "To use this application, you need the Adobe ConnectNow Add-in.Would you like to install it now?". Once we agree, it downloads and installs acaddin.exe at the location %USERPROFILE%\Application Data\Macromedia\Flash Player\www.macromedia.com\bin\acaddin on our local machine. Then automatically launches the acaddin.exe and allows the user to close the browser window from where the acaddin.exe was launched.
From the next time onwards, when we login to connectnow, it launches the exe directly.
In this context:
If I were to load my own exe/add-in from flash, How can I acheive that?
How does connectnow application/flash determine whether an add-in was already installed or not?
Connect, and I assume ConnectNow, use hidden, undocumented, private APIs for much of their functionality.
You will not be able to do this.
The best you can hope for is to pass the location of your executable to the browser as a local URL and let the browser handle it. I assume in most cases the browser will reject its' execution. Can you imagine the potential for abuse of such a feature?
Instead of using a browser based app, you may want to investigate using AIR and Native Process.

Resources