Selenium qtwebdriver Example - qt

I am working on test automating a qt 5.5.1 - qml Application on an embedded device.Is it possible to do on Selenium - qtwebdriver? If so I would first like to try it on the Desktop and then on the device.
Does anyone know of a tutorial of how a basic qt qml Desktop application is automated?I couldn't find it online.Pardon my noobness. Thanks in advance!

Yest it is possible.
Check some example selenium tests here : https://github.com/cisco-open-source/selenium/tree/master/java/client/test/org/openqa/selenium/qtwebkit/quick_tests
To run these tests check https://github.com/cisco-open-source/qtwebdriver/tree/WD_1.X_dev/src/Test: (main.cc is the main class to run, the *DeclarativeViewTest.cc are the test applications)
you can start from wiki: https://github.com/cisco-open-source/qtwebdriver/wiki/Hybridity-And-View-Management

Related

How to use qt webassembly in qml application

I am beginner in web assenbly and I want to use qt webassembly in qml application. I use emsdk 1.38.30-64bit to compile qml application and it compile successfully but when I use emsdk 1.38.30-64bit with thread flag in my browser I get downloading/compiling. what is my mistake and how should I solve this problem?
Qt multi-thread support is still quite in development, a single thread application should be in general fine for QML apps, the QML engine is still single threaded. Try also newer emscripten compilers, but even in my extensive testing with versions 1.39+ multi-thread was an issue. Quick note if you want to test your QML app in the browser, you can use Felgo WebEditor for quick snippet testing https://felgo.com/web-editor or you can test our fully fledged web IDE https://ide.felgo.com

How to Handle Flex grid with selenium web driver?

How to handle Flex grid with selenium web driver?
Right now I am using sikuli api (image processing) but it is not a good solution. if you have solution for it please give step wise answer which you have tested.
In order to be able to automate a flex application you need to add instrumentation features to your compiled SWF. This can usually be done using a loader application, that applies the instrumentation, or you compile this in to the application you are intending to automate. The webdriver then communicates with these automation-stubs and is able to take full control of the application.
Here is a description of the general Automation concepts:
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ec5.html
This article should explain the actual steps needed for Selenium2 with Webdriver:
http://www.blackpepper.co.uk/driving-a-flex-application-via-selenium-2-webdriver/
Handling flex grid in selenium is not a simple task, After some research, this task has been done successfully , Although selenium is providing SeleniumFlexAPI API by which you can perform actions in flex grid.
These are the steps which we need to follow:
you have to download selenium flex API .
you will get a SeleniumFlexAPI.swc file here.
a. you need to put this file in your flex application (In the repository or in your project libs folder).
b. you need to add lib path in flex compiler like this and compile the code
-include-libraries "libs\SeleniumFlexAPI.swc"
Source with Example

QAugmentedReality on BB10

I want to create augmented reality application on BB10. But there is no 3rd party library is available for BB10. So i am thinking to implement Augmented Reality using QAugmentedReality of Nokia because blackberry said that Qt application will run on BB10.
Is there any sample AR application in QT so i can run that on BB10 and check if it work or not then i start developing my application.
In the official tutorial for QAugmentedReality there is a link to a sample application towards the end. However it's a .sis file, so intended for Symbian. Not sure if you can simply execute that on a BB10.
In any event you could follow the tutorial and just compile it for BlackBerry
WIkitude Lauche its Augmented Reality SDK for the BB10. So now any one can build their application using Wikitude.
http://www.wikitude.com/

is there a way to run QML Viewer for desktop that will show Qt Quick components on Meego Hamattan?

I tried to run a Meego Hamattan Qt Quick project with Qt Quick components for Meego Hamattan that targets my desktop(Windows) and it only appears as all white.
I would like to be able to run Meego Hamattan UI in desktop, so that I wouldn't need to use QEmu(which is sluggish) to test my UI.
Please Answer my burning question! =)
Thank you very much!
I assume your only choice is QEMU or a real device.
The QML meego components use platform code that is not available/compiled on your desktop.
I think the problem is not with the components.. Is there are some errors in the QML code, the screen would be blank.. Look at the space below the workspace where compilation errors, build errors and application output will be notified.. If you note some text in Red color then its your mistake.. I can test my Qt quick and QML projects in Desktop build, Simulator build and also using QML viewer.. So the problem will not be the one you are mentioning..

Flex application packaged in AIR doesn't show it's window

I have a Flex application that builds and runs from Eclipse without any problems. I've created an Ant build based on the sample provided by Adobe and builds the application and packages it up into an AIR application. No errors occur during the build process and an AIR file is created.
The problem is that when I install the AIR application and run it, there is no UI at all. The process is running because I can see it in Task Manager but I can't see the app window. I've commented out all of my initial code so just the first window should appear but still nothing.
Is there anything that I might have missed in the build to cause this problem?
Thanks in advance
Andy
OK, found the problem. Turns out I was missing the following parameter in the Ant build script:
<arg value="-include-libraries=${libs}"/>

Resources