Jibberish

AutoIt and Universal Windows Platform (UWP)

11 posts in this topic

#1 ·  Posted

Hello all,

I searched the forums for UWP but got nothing helpful. Our team is going to move from our current code to UWP and rebuild our app.  I use AutoIt to automate long boring tests.

Does anyone know how AutoIt plays with UWP programs?

Thanks!

Jibberish

Share this post


Link to post
Share on other sites



#2 ·  Posted

I think @junkew will answer to you soon ;)

 


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

Yes I did, and thanks!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I was having trouble finding simplespy, and was asking here where it was.

Then I found it.

Thanks

Jibberish
Edited by Jibberish
Complete rewrite

Share this post


Link to post
Share on other sites

I still think its a system that's way too confusing, i think autoit should start to integrate a system to handle those as it's increasingly more common to see questions about it.


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Well this is why I switched to Coded UI 😇. Automated testing was never this easy.

Edited by Earthshine

Earthshine
A beacon in the night
I can raise my eyes to 
Earthshine -- RUSH, Earthshine - Vapor Trails

Share this post


Link to post
Share on other sites

@Earthshine Maybe then make a reference to Coded UI best practices to see what I can change in UIAwrappers.

I think you mean the developer builds the functional testcases also in his own programming language (white box) which is fine as long as the output can be understood by all parties in and outside of the team (either with a replayable video or a bunch of screenshots with subtitles to tell what functionally is happening)

The base of all (black box) GUI tools I have seen is about

  • Use a bunch of 1,n properties to recognize your control and give them a logical programmatic name (object map, repository, application map)

More advanced tools

  1. allow regex in the property identification values
  2. Have runnable specification language (no Gherkin/BDD is not directly executable without reprogramming it in your implementation program language), your script is your documentation (or can be presented in such a way its understandable to business and IT people)
  3. Support all type of UI Objects in a similar way (from mainframe telon screens up to the modern smart watch, 1 tool fits all)

AutoIt + UI Wrappers is wel suited for windows + browser application(s) and not suited for mainframe, phone, watch without a lot of work. 

Java widgets is somewhere in the middle doable from AutoIt with some Java Accessibility Bridge but not seen a full finished udf to handle stuff easily.

1 person likes this

Share this post


Link to post
Share on other sites

will do.


Earthshine
A beacon in the night
I can raise my eyes to 
Earthshine -- RUSH, Earthshine - Vapor Trails

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

16 hours ago, junkew said:

Just let me know what is confusing with uiawrappers and i will try to enhance it to be more logical but bear in mind gui automation is not easy as there are to many exceptional controls hard to recognize.

Im starting to get how it works, had to change a couple of code in the examples because of the different language for titles and such.

Now i got some code going but it takes forever between actions.

As for simplify stuff maybe simplespy could be added to autoit, and something about it in help file.

There could be examples with less code imo.

I cut down tons of lines for the example of the calculator, only needed to press 1 number to get how it works, baby steps.

Edited by careca

Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now