Jump to content

JonAnton

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by JonAnton

  1. Thank You, I haven't worked with Control Commands yet. I will look into them and see what I can do with them. Thanks.
  2. I'm sorry if I didn't explain it properly. It's not in a combo box created with AutoIT. I am the Change Management Officer on a development team. I am writing scripts to perform regression testing on some of our UI's. This problem occurs on our Login screen. I scripted it to enter in the username/password and then when I choose the environment to test (eg.. Development, Integration... etc) I use up/down arrows to choose from the combo box in our UI. This is where I get the error. This is the code I use to accomplish the login. This will enter the username/password, tab to the first combobox, arrow up to create a starting point, arrow down to choose the environment I want, tab to the next combo box and do the same thing. AutoItSetOption("SendKeyDelay", 100) send( "" & $login ) Send( "{Tab}" ) Send( "" & $pwd ) Send( "{Tab}" ) Send( "{Tab}" ) Send( "{Tab}" ) Send( "{UP}" ) WinWaitActive( "Login", "", 200) Send( "{Down} ") Send( "{Tab}" ) Send( "{UP}" ) Send( "{UP}" ) Send( "{UP}" ) Send( "{Down} ") Send( "{Down} ") Send( "{Tab}" ) Send( "{Tab}" ) Send( "{Tab}" ) Send( "{Enter}" )
  3. The script I wrote uses Send( "UP or Down" ) to navigate a pull down on a UI. Every time it gets to that point and sends the Up or Down command it Errors out with an "Unhandled Exception" error. I researched it a bit against the code of the UI. When you manually hit the Up or Down key it returns something different than it does when I use the Send command from the script. Can someone give me a little insight on what might be happening here? Jon
  4. How can I return the name of a SubFolder that contains a certain file? I am in folder where there are several dozen randomly named folders. 4 of which contain the .exe file I am looking for. I want to run a loop to search for the .exe file and then return the folder name and the version number of the .exe file into an array or variables to compare them. I once I find them, I know how to get the version number, but making the script finding them is proving to be a headache. Any help appreciated. Thank you.
  5. That folder is unique to this UI. Is it possible for you to give me an example of how the code might look for this? You'd be my hero.
  6. Say, I am still a little confused.... Below is the path to folders and the four latest folders with the bottom one being the latest. Each of those four contains the .exe file I need to run. This folder also contains dozens of other sets of folders for the other UI's our application uses. C:\Documents and Settings\JEAnton\Local Settings\Apps\2.0\H6KW0Q10.MY7\ZKJZDN09.585\orde..tion_10c62d0224737893_0004.000c_cfcd71d516e80c4a orde..tion_10c62d0224737893_0004.000c_cfcd71d516e80c4a orde..tion_10c62d0224737893_0004.000c_dd9e18d2ca2bc0ab orde..tion_10c62d0224737893_0004.000c_e0ad890df3aaae0a orde..tion_10c62d0224737893_0004.000c_ec81f11eb05c8dab I appreciate your time. Thank You, Jon
  7. Thanks JLogan, It is the latter..... We might have a half dozen version changes in a month sometimes. The UI I am starting with is the most actively used UI in our package. Ideally, we only update once a month, but there are little patches released in between sometimes. I will play with the FileOpenDialog command. From your description it will search for the newest directory in the target directory I set up? One thing... for this UI it appears it saves the previous 3 released versions too, but there are dozens of other UI directories in this same directory. Will this search for directories containing the corresponding .exe file and then choose the newest? If so, this seems like it might work. I will play with it today. Thanks.
  8. I created a script to do Automated Regression testing on one of our UI's. It is deployed into ClickOnce. I got it to work by finding where ClickOnce puts the .exe file on my PC. And it ran like a dream. However as soon as a new version was released my script broke. It seems that when you run the UI from my PC it calls it from a location under my Documents and Settings/..... location. If there is a new version the Application Reference triggers ClickOnce to write the new version to a new directory in that location and that breaks my script. I tried recording the clicking of the application reference, but that doesn't seem to do anything. The script appears to pause at that point in the code. I really like AutoIT and I can see that I will be able to do a lot more with it if I can just get past this problem. I hope I explained it well enough for someone to understand what I am talking about. Thanks for any help. Jon
×
×
  • Create New...