Jump to content

Does AutoIt block outgoing network access?


Recommended Posts

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

Link to comment
Share on other sites

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

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 here
RegExp tutorial: enough to get started
PCRE 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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...