Read information from CMD, browser using windows UI automation - winforms

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/

Related

Does Thinfinity Virtual UI work with embedded browsers (Cefsharp)?

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!

Need some suggestions for developing a desktop application that uses offline database

I have a web application that needs to be implemented as a desktop application. With my brief research about it, I came to know about Electron. Though it is an amazing tool to convert web applications to desktop ones, my application needs a database to run and it needs to be run offline. I also did read about using SQLite. I need to get more insight and suggestions as to how I should proceed with it.
Well if you are going to use SQLite don't to forget to encrypt the database.
To learn more about it check this

Running White UI from Java

Is there any way I can invoke White UI Automation tool from Java?
I already have a Java framework with me and now I need to handle some Silverlight application (which is legacy code and the developer has not made it scriptable). I don't want to maintain a separate workspace/technology for this. Is there any way I can call White UI or the underlying Windows UI Automation from within my Java code?
Perhaps IKVM would work? I haven't used it before, but it looks like it allows you to run Java code that can directly access .NET assemblies.
So, sounds like it might be a way to use both White and your Java test framework at the same time.
There's an interesting tutorial here (see the section Developing a .NET application in Java):
http://sourceforge.net/apps/mediawiki/ikvm/index.php?title=Tutorial
And the main IKVM website is at ikvm.net

How can automation testing on Silverlight using Selenium be done?

I am looking for a way by which I can automate my application build on Silverlight.
I need to use Selenium as required, can anyone tell a process or any good tutorial by which I can achieve what I require.
Thanks in advance.
Take a look at:
http://code.google.com/p/silverlight-selenium/
and
Silverlight testing: Watin vs Selenium comparison
Also bear in mind that Silverlight's future looks uncertain:
http://www.hightechnewstoday.com/apr-2011-high-tech-news-archives/74-apr-13-2011-high-tech-news.shtml and http://www.electronista.com/articles/11/11/09/microosft.may.axe.silverlight.after.major.release/
etc. etc.
So you may prefer to consider HTML5 for future projects after completing your current Silverlight project, as HTML5 has a brighter future because of its cross browser support and efficiency compared with proprietary technologies like Flash and Silverlight.
I suggest Sikulix which a desktop automation tool using which you can automate almost everything. which uses text interpretation of image so that us can locate your component.
If you are using python selenium i suggest to use pyautogui which is nice python package to automate silverlight web pages.

How to use Windows Biometric Framework (WBF) in WPF application?

I'm working on WPF application which should identify user using Fingerprint Reader.
It seems Windows Biometric Framework (WBF) is good enough for this task but I can't found examples where I can see how it can be used in my WPF application. Couple found examples use WBF to verify user currently logged in.
But my application should work with custom users and windows authentication is not acceptable.
I found also small MSDN article where described three sensor pools, one of them should be used in my situation. It is not clear how I can move Fingerprint Reader device between pools, where to get C# wrapper for Biometric API and how all of these things can be used together.
I'm using UPEK Eikon as fingerprint reader device and Windows7 based tablet PC where my application should run.
Could you please help and give me examples and links on useful resources?
Thanks
Dmitry
There are complete C++ examples in the WBF documentation NOW.
I'd like to know where you:
"found examples use WBF to verify user currently logged in"
as those should then show you how to call the WBF API from WPF.

Resources