I am in the process of writing automation scripts for Flex applications using Selenium-Web driver but i don't know exact steps and the ids capturing for Flex application.have goggled several times but I couldn't get any exact solutions and answers.
Please let me know clear steps to write the automation scripts and capturing ids using any tool or from Selenium IDE.
Currently they provided me only application URL by using the application URL only I need to write the scripts using Web driver.
Although this only works with Selenium 1 (not webdriver), take a look at Flex Monkey:
http://www.gorillalogic.com/testing-tools/flexmonkium
Install the console and then start up a selenium server, loading the user extensions provided in the zip file (also available on the download page).
If you open up the page you are testing and then open the console, the console should indicate it is connected - you will then see actions in the selenium IDE.
If not, you need to deploy the application under test with the appropriate SWC projects for Flex Monkey to recognise the objects on the page.
As far as I know, You are not able to automate Flex web app using webdriver (at least the easy way). You can do it with Selenium RC, adding FlexUISelenium extension to RC and compiling application with Flex libs.
I've heard about writing Your own javascript methods with flex handling, but I didn't try (will investigate it soon).
Check this link.
However I do hope that I'm wrong, because I'm facing this problem now ;)
Related
What are the different ways to automate desktop applications using selenium?
We tried automating 360tc java application using Leanft
Some of the objects were not getting identified as expected
Hence decided to try with Selenium
Winium.Desktop.Driver.exe: you can download it from vl.6.0. This will act as a server and communicate internally via JSON wired protocol as selenium does.
From the top of the Selenium homepage:
Selenium automates browsers. That's it!
So, there aren’t any ways to use it to automate desktop applications (with the exception of the browsers it is designed to work with).
My company wants to try out the library "Thinfinity Virtual UI", to run a Windows Forms application in a browser.
It seems to more or less work, though the application crashes everytime an embedded browser is attached to the form (Cefsharp), see attached image.
I am not able to catch the error in the try/catch.
Any ideas how to remedy/debug this issue?
I tried searching the web for a solution/alternative to CefSharp, looking at error logs, inserting the try/catch. I also wrote to the company, but so far I get no reply.
This is Luke and I work at Cybele Software where we developed Thinfinity VirtualUI to help Windows developers converting their Legacy Windows Applications into modern Web Applications by just modifying one single line of code and adding our libraries.
Unfortunately, as it is, WebView and Chromium are not supported in our propietary protocol. But do not worry, we have 2 valid workarounds.
Using our HTMLDOC demo. Link to our GitHub HERE
This demo shows how to programatically create an iframe inside your application (using HTMLDOC.CreateComponent) , and how to communicate back and forward between the application and the website running inside that iframe, using Javascript Remote Objects (JSRO)
Using our 'Third Party Applications' Feature. Link on how to enable this HERE
Be aware that to enable this feature, you'll need to have our Thinfinity Broker and your app running on a Windows Server. Basically, with this option, you'll be using a Microsoft feature called 'Desktop Duplication' where we can eventually render any Third Party application with the help of Remote Desktop Services.
I hope this does the trick for you and don't hesitate on contacting us about this or any other doubt you may have about our products :)
Thank you!
Is it possible to test AngularJS SPA application developed using ASP.NET MVC with Visual Studio or any other alternative tool for the same purpose?
I solved the above issue by using a headless browser (PhantomJS). I wrote a script to simulate user logging into the angular application and loading the inbox. But this way I was able to test only one user.
We cannot span multiple instances of PhantomJS, so I created 100 copies of the PhantomJS and then wrote a script to launch all these 100 copies to span 1 process of PhantomJS per file, the solution worked like a charm for load testing a SPA website.
If you have a Visual Studio version which includes load testing framework the answer is yes, see Get started with performance testing for details.
If you don't have a matching Visual Studio edition you can consider any other load testing tool, for example see http://www.opensourcetesting.org/category/testing-tools-overview/performance/?menu-page=overview
Any tool which supports HTTP/HTTPS protocols will play for you.
The most outstanding free and open source load testing tools are listed and compared in the Open Source Load Testing Tools: Which One Should You Use? article.
Please tell me the process if its possible to create a driver for windows application using selenium webdriver.
No two windows applications use the same tools to build their UI, nor will they use the same language for their UI, so I would say no, it is not possible to build a driver for "windows applications". It might be possible for one specific application, but most likely not, as UI hooks are generally not exposed anywhere outside the application source code, so selenium would have no way to find the elements.
I can understand how UI automation can help retrieve information from text boxes within windows forms applications. How can I retrieve information however from command prompt tools and web browsers? I have a telnet session that I would like to read data from as well as a simple web based tool with plain html. Any ideas?
I could be wrong, but I don't think there's an easy way to interact with console programs using the UIA API, and web browsers, while possible, would be time-consuming to deal with. But other libraries can help.
Are you using C#? If so, for console applications, you can probably use the Process class if your automated test are simple - here's an old post about the same topic:
Command line automation – expect equivalent
I'm actually still searching for a free Expect-like C# library. Haven't spent too much time looking yet, though.
For web automation, I suggest using the Selenium C# client driver - as far as I know, it should do what you need:
http://seleniumhq.org/docs/03_webdriver.html
http://seleniumhq.org/download/