473,657 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reliable Perl Automation

57 New Member
Hi All,
I have a very extensive Perl script using Win32. This is an automation script which manipulates various windows using the mouse and keyboard (using Win32::GuiTest) . The various windows that I am manipulating are part of a software program that was written in Java. However, my Perl script is layered on top of this program, so it does not affect the Java code (I hope that makes sense). In other words, my Perl automation is just taking the place of a person actually sitting at the computer and using this program by clicking through the windows.
The problem is sometimes when I run the Perl script it works just fine. And I get the expected outcome. And other times, I run it and the windows lock up and everything gets all out of sync. So now it’s like every run is just a crap shoot…I just run it and see if ‘this time’ it will work properly.
Is there something that I need to add to my Perl script that will make sure the process runs without any hiccups and is reliable every time I run it? Does this have to do with memory or the ‘AllocateVirtua lBuffer’ function that I keep seeing in Perl, but i can't find much detail on it?
Any thoughts?
Terra
Feb 14 '08 #1
1 1725
KevinADC
4,059 Recognized Expert Specialist
If the java program always works with a human operator instead of perl, then I think we can safely assume perl is doing something that causes the problem. Having said that rather obvious bit of information, if the errors/problems are always random, I have no idea how you will track it down. Try running perl in debug mode and see if you can step through the program while it runs:

perl -d
Feb 14 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

31
4777
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is great for pattern matching, text processing, and automated testing. Our company is really fixated on risk managnemt and the only way I can do enough testing without working overtime (which some people have ended up doing) is by automating my...
2
2921
by: calfdog | last post by:
Hello, I was wondering if anyone could tell me why fireEvent works in every language but Python with the latest Internet Explorer? I tried this page that has two listboxes if you select Listbox A the Listbox B should change. The code status: Works fine with Python 2.3, 2.4 in Windows XPsp1
0
1974
by: RJB | last post by:
I'm moving an application from XP to Linux. The XP version of the application uses com automation to instantiate an instance of IE6 and then drive it to various web sites. These are generally fairly sophisticated with content driven by scripts, involve frames, etc. I need to measure the time between the start of navigation and its completion, reference the DOM to extract certain data from the page, possibly save the page (not just the...
2
15229
by: perlandtcl | last post by:
Can any one suggest any link for perl expect.... and few examples for automation of router and switch configurations .. apart from the tcl feature available in CISCO IOS
10
5157
by: kraj123 | last post by:
Hi Friends, I would apprciate, if anyone could help me out regarding coding tips for writing a perl script for automating a snapshot process. Snapshot is nothing but capturingn forms from different language database local servers like russia,japan..which are in csv file taken as input and comparing with present english database forms in our system and output it as definition file. this out put should be checkin to repository....this should...
4
2113
by: Npreeti | last post by:
HI All, I need solution for one problem. We are installing a product on Solaris OS.There is a kind of command line installshield in Solaris .I need to use perl for automation of this installation process. How can i automate this installation process? Are there any perl packages existing? Thanks,
6
3529
by: kinedesigner | last post by:
We're using a perl script to fetch images from the inhouse server & pump them to a remote server with much higher bandwidth. I want to remove the Everyone account from the target folder on the remote server, so users may only access it with username & password. When I do this, the perl script stops working. I can only assume the perl script is operating under the Everyone account. How do I change the functionality so that the Everyone...
8
4221
by: gajendra98 | last post by:
Hi All I Have installed Active perl in my system and I am new to perl and automation...Could some one tell me how to install the perl modules and how to use those modules with the perl for autmating the website ... it will be very helpful for me to start automation...
8
3065
by: newperluser | last post by:
Hi All, Im new to perl programming and currently using a automation code written in perl by someone else. My script uses an openssl client to perform some handshake operation using the client certificate, for the handshake to be successful it prompts for a passphrase. So I thought of keeping the passphrase in a file and at run time my ssl client should pick from the file. But I'm nt sure hw to go abt with it any suggestions guys?? Thanks.
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8512
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6175
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.