joespr Posted April 28, 2010 Share Posted April 28, 2010 Does AutoIt block outgoing network access? Installed AutoIt3 on Windows Server 2003 and automated an install of a product (The AUT = application under test). Everything goes great. Can detect everything, click the right buttons etc. However. Part of the install of the AUT includes it communicating with a non-local SQL Server database to create some schema items etc. The AUT works just fine when I do it manually. But when I use AutoIt to click the AUT's button to initiate the DB work, there is no outbound network access, at least for SQL Server access. I even ran a network trace tool (WireShark) in the background on this server, and when AutoIt is running, when I click the appropriate button to do the DB work, there is no outbound traffic. BUT if I stop AutoIt and click that button manually, everything works fine. So... what am I doing wrong? Is there some setting I need to do to allow outbound access? I looked in the doc but didnt find anything I could pin anything on. PS, Windows Firewall is disabled. No other firewalls installed. Server and Db on same local subnet and same Windows domain, logged in to the server with a network user that is in local admin groups on both machines so authentication and credentials not an issue. Thanks for your help and any advice. joespr Link to comment Share on other sites More sharing options...
spudw2k Posted April 28, 2010 Share Posted April 28, 2010 It does not block anything, unless you design it to do so. Can you post some example code for the SQL automation so we can have a closer look? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
joespr Posted April 28, 2010 Author Share Posted April 28, 2010 It does not block anything, unless you design it to do so. Can you post some example code for the SQL automation so we can have a closer look?I wouldn't think AutoIt blocks anything, but something weird goes on.The SQL code is embedded in the AUT, so I dont normally see it. I just click a button. I believe it is using ADO.NET with integrated security. Connection string is obtained from a local XML file that the AUT uses to get the parameters to make the connection.Here is the connection sting info from the XML: <add key="DbConnectionString" value="Data Source=MYSERVER1;Initial Catalog=DB1;Integrated Security=True" />and <add key="DbConnectionString-DatabaseType" value="SqlServer" />Not much there, and nothing that looks off to me. Not knowing more about AutoIt, I am stumped. Link to comment Share on other sites More sharing options...
jchd Posted April 29, 2010 Share Posted April 29, 2010 Can't it be hat you're not barking at the right tree? I mean: are you 500% sure the AUT is actually seeing the button click while your AutoIt application is running? I don't know much but aren't you intercepting the button event without giving it back, or something like that? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
joespr Posted April 30, 2010 Author Share Posted April 30, 2010 Can't it be hat you're not barking at the right tree? I mean: are you 500% sure the AUT is actually seeing the button click while your AutoIt application is running? I don't know much but aren't you intercepting the button event without giving it back, or something like that?Hmmm. You do raise a doubt that _maybe_ I didn't do something proper. I need to go back and check what I did. I know I didn't do anything differently than clicking any other of the other buttons in the other 'pages' of the install program, and then just wait for the next thing that happens (a pop-up message saying DB creation was successful). It'll take a day or two before I can have access to that machine; please bear with me.Tnx. Link to comment Share on other sites More sharing options...
omikron48 Posted April 30, 2010 Share Posted April 30, 2010 Is it just one button click and not a series of button clicks? It may be the case that your AutoIt is clicking too fast that the script either just hangs or exits with the mouse click not hitting their proper targets. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now