Jump to content

Automate test of a built application


Ulf

Recommended Posts

MonkeyLives=True?

But seriously I've never used AutoIt to test an application, just to automate button and key presses.

Thats why I asked, I have never used AutoIT, so I don't know. Have you used it together with LabVIEW or other languages?

Edited by Ulf
Link to post

Thats why I asked, I have never used AutoIT, so I don't know. Have you used it together with LabVIEW or other languages?

I have used AutoIt with LabVIEW. If you choose to install AutoIt (which is optional) it will install some ActiveX components. I can't remember why, but when I did this I found the features to be lacking when compared to just writing AutoIt code and compiling. I also looked into getting DDE to work between an AutoIt EXE program I wrote, and LabVIEW. I could get LabVIEW to talk to the AutoIt EXE but couldn't figure out the other way for some reason.

In either case I highly recommend downloading it and at least looking at the shipped examples. They do a pretty decent job of showing you how to do the basics. There's a relatively large community out there to support more complicated programs and functions. It's very liberating, being able to download a single zip that contains source, and a method to build an EXE that will run on any Windows machine, without needing a development environment, or run-time engine.

Link to post
  • 2 weeks later...

I concur - I've used it a few times, mostly for iterating over multiple UUT simulations (eg: I have 1,000 images that are of UUTs, and a custom vision alogrithm that makes some measurements on them. I write an autoIT script that acts like an operator: enter a serial number that identifies the UUT image, maybe populates some other test specs, hits "GO!", waits until the status indicator turns green or red (and maybe branch here for some additional stuff it the UUT fails, switch to Excel, add a tab, fill some stuff out, switch back to my app, then rinse and repeat. I can make a minor mod to the algorithm, run the script, and let it hum away in a virtual machine while I work on other things.

The scripting language is very capable, and I agree that it's simple to learn. You can even distribute a "script" as a stand-alone exe (I've done this for customers that want to do their own testing).

Link to post

Ulf,

The GDS is tested with AutoIT, it takes about 24 hours to test through 6 versions of LabVIEW, and I'm glad I don't have to do it manually.

I've even cerated a AutoIT application called StartUp.exe, which I configured as the windows shell.

This small application made sure my LabVIEW application always was running and if not, it started it.

I also have this application to silenly install LV2012 RT eninge if needed.

You can almost do anything with AutoIT, It's a great tool.

Cheers,

Mike

Link to post

I also have this application to silenly install LV2012 RT eninge if needed.

This is a great idea, and I've thought of it before but never did anything about it. One issue with LabVIEW when no runtime engine is installed, is there is no way to do any thing (kinda obvious but still frustrating). Having an AutoIt EXE that just checks for the existence of the LabVIEW runtime engine seems like a great idea. Not sure what JKI does at the moment, but I assume they could use something similar when distributing VIPM to a machine that may or may not have the right runtime engine installed.

Out of curiosity how do you do the automated install of the runtime engine? I understand there is silent switches that can be used, but do you have it automatically download the runtime engine? Or do you include it with the AutoIt EXE?

Link to post

Out of curiosity how do you do the automated install of the runtime engine? I understand there is silent switches that can be used, but do you have it automatically download the runtime engine? Or do you include it with the AutoIt EXE?

The Auto IT script supports attachment of files, it auto zips it and can extract them for your very quickly.

The RT engine is at about 200M, and I think it got down to 150M for everything in the AutoIT-exe file.

//Mike

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Benoit
      Manufacturing a satellite or a simple pen require to test the quality of the product before delivery to the customer.
      LabVIEW is widely used for that purpose. Since 20 years of LabVIEW development I saw numerous test framework. I was wondering if people where interested to work in a collective and open source test framework.
      Per example the following feature can be included:
      HAL (hardware abstraction layer)
      Database to record test results with the data viewer (PostgreSQL)
      single/asynchronous/batch/debug mode
      multi-language support
      Image analysis (open CV) + bar code reader
      User access level
      Remote monitoring
      Jig identification to prevent user error (testing the wrong product with the wrong jig/test sequence)
      HTML/xml/txt report
      and so on....
      Benoit
    • By Audi Dec
      Senior Engineer Cupertino, CA 95014 1 year and extendable   Domain: Consumer Electronics Must have : Python, C/C++ (preferably Python), LabView   • Work closely with the design team to analyze the requirements and help with defining the test criteria • Work with the team to develop the automated functional and regression tests using apple’s testing framework.  • Actively participate in code reviews conducted by the developers • Evaluate existing testing methodologies and suggest new techniques that will help us deliver high-quality features faster. • Improve, maintain, and execute automated functional, regression, testing codebase • Maintain a solid understanding of Test workflows, automation best practices, and agile methodologies         • Maintain proficiency in application and use of systems, tools, and processes within the Technology department.         • Take a lead role in QA Roadmap initiatives Basic Qualifications:            • BS/MS in Computer Science, Computer Engineering, electrical engineering or similar technical field         • 3+ years of experience as a Software Development, Test Automation.         • Experience in embedded hardware, software test automation.           • Demonstrated experience in test framework design and development         • Excellent communication, collaboration, reporting, analytical and problem-solving skills         • Proficient with Agile testing methodologies and best practices Mandatory Skills: • Strong programming skills with Python, C/C++ (preferably Python), LabView  Expert   • Excellent fundamental knowledge of data structures, algorithms, and object-oriented design    • Experience with embedded system hardware/software test automation.     • Experience with Functional, factory line, diagnostic, reliability testing    • Experience defining test plans and designing/developing the automation.    • Experience with Linux, real time operating systems (bonus)  • Passion for testing and quality engineering  • Experience with bash scripting    Reach me at chaitu@fraank.com for more information 
    • By Benoit
      This XControl has the nice feature that a Calendar control should give you.
      Multilanguage support by property node.
      The input and output are Labview Time Stamp.
       
      When selecting a date, the date in the calendar become light blue.
       
       
      Please you receive this XControl for free. The minimum you can do is to rate it.
       
    • By Benoit
      Name: Calendar XControl
      Submitter: Benoit
      Submitted: 09 Jan 2016
      Category: *Uncertified*
      LabVIEW Version: 2011License Type: BSD (Most common)



      This XControl has the nice feature that a Calendar control should give you.
      Multilanguage support by property node.
      The input and output are Labview Time Stamp.
       
      When selecting a date, the date in the calendar become light blue.
       
       
      Please you receive this XControl for free. The minimum you can do is to rate it.
       

      Click here to download this file
    • By petrusgunawan
      hello, 
      i am working with solar inverter and i want to acquire voltage and ampere with USB RS485 as modbus.
      i am using LABVIEW 2012 and visa serial in LABVIEW.
      i already make it but the chart doesnt show anything.
      could you please help or make a little correction in my block diagram.
      here is my block diagram *first to acquire voltage
       
      thankyou for your kind attention and help
      Untitled 1.vi
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.