Jump to content

igadget

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by igadget

  1. Where I work, we use another automation software to record and playback our internet session (since our software we design is internet based). We pay an outrageous sum each and every year for the licences to this software, which may or may not be worth it to my company (Thats not up to me.) Anyway, After finding out about Autoit and finally sitting down to look at it, I began creating scripts to facilitate my *Manual Testing* of our app, by creating scripts that would manipulate the com objects and ... well ... speed up my testing. This was cumbersome and time consuming to try and figure out what the name of each object was, and write out the code to manipulate the objects, go to the next page and so forth. Any way, I decided enough was enough and so I put together this script which would record my manual entry of data into our Internet Application and write out the code for me. I have successfully cut down my script creation from a few hours to a matter of minutes. (I probably will be given more work for this now that I can do it faster. What a can of worms I have opened). The script I have attached works for what I need to use it to do (99%) of the time (See my signature). There are a few flaws in that I am only caring about the 1st Form (Index 0) that appears on the IE Page. That is all that I require for my testing, but I will most likely change it up to allow for multiple forms on the same web page at a later date. Keep in mind that this is a **Pre-Alpha release** of this and I will continue to make improvements to it as I get available time. I will be adding in the ability to validate values on the screen a little bit later so that this can become a full fledged automation and validation machine (i.e. Expected results vs Actual results). Currently it can handle, Image Clicks, Link Clicks, Text Inputs, Select Options, Check Boxes, Radio Buttons and page submitions. Also, the Script does not allow you to enter a webpage into the address bar, as I have not coded the logic to retireve this for playback. When you begin the script, click File-->New and enter the starting URL and away you go. When you are done with the creation of the script, just close the GUI window of your script and it will save it for you. After that, all ou should need to do is run your newly recorded script and it will do the rest. Enjoy, ************************************************************ This script requires: AutoIt Version 3.2.0.1 Also, The file IE_Helper_Functions.au3 must be in the same directory as the recorded script you just made, or placed into the Includes folder. to function properly. ************************************************************ IE_Record_and_Playback.zip
  2. While writing a script here at work, I needed to utilize a couple of time duration pauses. After glancing through some posts, (after searching for 'Timer'), I did not see anything that could help me. So anyway, I wrote a little UDF which seemed to work wonders and fairly accurate. If anyone comes across anything that malfunctions, please let me know so I can update the code. I have attached an example file to show you how to use it. Thanks, Igadget Timer.zip
  3. Hey ... no confusion on my part ... I just wanted to clarify so people did not think I had never done this kind of thing before. :"> Also, I checked out your Connect 4 game. Nice progress bar functionality while your waiting for someone to connect ... it's sweet. Did you come up with that function or is that in the AutoIT documentation and I missed it?
  4. Thank you very much for the warm welcome to the Forum. For the record though, this is not my first script I have ever written ... all though it is my first I have ever posted. I did notice that while I was playing it at work during some down time, I realized that the only way to play it was with a Real Live person and that might be a little hard to come by ... so I added in a computer opponent to play against. I'm not one to write real gripping AI so don't judge it to harshly ... you can see how I did it by checking out the file "computer.au3" ... not Halo or Half Life quality AI but it gets the job done. Anyway hope you enjoy it. -igadget
  5. You know, when I was first introduced to AutoIT about 2 year ago, I thought, 'How cute.' and moved on. What a mistake that was. I use another *cough* Automation software at work that has many features, but in reality is bulky and lags. About 1 year ago, I finally sat down and took a look at AutoIT and was instantly hooked. The ease of designing a script to automate my job was insane (*Pat on the Back* to the designers). Though unfortunately where I work is so paranoid about using the internet that I rarely go on it, so I don't get much time to ever visit the Forum. Anyway, whenever I get a free moment at work, I begin writing scripts to automate my life as well as my co-workers. at first, I got negative feedback from the managers about how I shouldn't use a freeware (except for the donations) piece of software that has no real support to help me with my work. I said ok and promptly disregarded them because, had they used it, they would have seen that I was not attempting to replace the other Automation Software they had, but compliment it by creating scripts that the other software could not do. Anyway, I finished my project ahead of schedule (having recieved no compliments on the early completion) ... typical ... and wanted to see what else besides the standard SQL querying, IE and Excel manipulating it could do, and once again, I was amazed. I quickly threw together this game, which by the way already comes with Win XP, and am putting it out here for anyone who wants to see it. When I was younger, this game was called Othello ... though now it is known as Reversi. If anyone does not know how to play, well ... I didn't write any documentation (except whats in the code) to help you. I did add a feature that will show you where your possible moves are though so hopefully you can figure it out. I used AutoIT v. 3.2.0.1 to write it The individual files are here to browse The zip has all 5 files together Enjoy. ------------------------------------------------------------------------------- Additional Note: ver 1.5 Updated code with the ability to start a new single player game against the computer. Othello.au3 Othello_Global.au3 Othello_TCPIP.au3 Othello_Validate.au3 Computer.au3 Othello.zip
×
×
  • Create New...