473,672 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Functional test web site using python com and Internet Explorer

Hi,
I am trying to extend PAMIE (sourceforge project to functionally
test web sites using com and python) and I wondered if anyone had done
this sort of thing before and had any pointers. My main reason for
doing this is that the website I want to test is so full of frames and
javascript that it seems painful to try to fix httpunit to be able to
cope with it. The difficulties I am having are in getting IE to behave
repeatably, handling multiple levels of frames and handling events. In
particular when I use dispatchWithEve nts instead of Dispatch the IE6
gui almost seems to block (it gets much slower at any rate). Is this
to be expected ? I have used pythoncom._GetI nterfaceCount() to see if
I was getting loads of references but I only have 2.

Thanks,
Chris
Jul 18 '05 #1
1 1891
Hi,

I am using Internet Macros for almost a year now. I highly recommend
it:
For example, you can't single-step through a macro to debug
your application when a test fails. Painful.
I agree. An acceptable workaround is the "Pause" and "Continue"
feature.

IMHO the best approach is to split the testing in many smaller macros
and use the scripting interface to connect them (see below).
Well, apart from the fact that the scripts it records
really *are* just scripts, not programs with conditional logic &c, so
you can't factor out duplicated test logic, and it rather discourages
writing non-trivial tests, which limits its effectiveness.
While the macros itself are only good for simple testing, the
"Scripting Interface" makes the app extremly powerful. It allows you
to remote control the Internet Macros browser from *any* Windows
programming language. While I use mostly VB and Perl, you could use
Phyton as well (http://www.iopus.com/iim/tutorials/python.htm )

This approach allows me to store the web test results directly in a
database and use any kind of conditional logic, e.g

return = iimPlay ("macro-test1")
if return < 0
'Test1 failed!
return = iimPlay ("do-something")
else
return = iimPlay ("macro-test2")
end if

(iimPlay is a command provided by Internet Macros, it starts the IM
browser and runs a macro.)

I used this approach to automate extensive web testing for several
banks and insurance companies. So far, my clients love it ;-)
Also, it's
IE-only and Windows-only: testing against IE/win is necessary but not
really fully sufficient for a lot of people.


I agree. But I heard they are planning support for Mozilla / Firefox
later this year. In general, I found their support *very* responsive
whenever I had a problem with the software.

Marc
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2495
by: George Hester | last post by:
I have always used this in ASP to test if the client is accepting cookies: <%@language="VBScript"%> <% Session ("nc") = 1 If Len(Session("nc")) = 0 Then 'Cookies Off Else 'Cookies On End If
11
9247
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
2257
by: Xah Lee | last post by:
One-Liner Loop in Functional Style Xah Lee, 200510 Today we show a example of a loop done as a one-liner of Functional Programing style. Suppose you have a list of file full paths of images: /Users/t/t4/oh/DSCN2059m-s.jpg
0
1370
by: cmay | last post by:
Has anyone else seen this? Every now and then when using the back button on our site, we get an IE popup box saying: "Internet Explorer cannot open the internet site: https://mysite.com/asdfasdf Operation Aborted" Most times you just click OK and you are fine, but in some instances you have to reload the page. We are using frames and dynamically loaded ASCX files.
133
6873
by: Alan Silver | last post by:
Hello, Just wondered what range of browsers, versions and OSs people are using to test pages. Also, since I don't have access to a Mac, will I have problems not being able to test on any Mac browsers, or is there some other way of checking? TIA --
60
4904
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%) UNDERSTAND 'Strategic Functional Migration
2
1420
by: mobiletornado | last post by:
I am using visual studio .net 2003 enterprize architect. My application test center is version 1.0.536 I am runnign window xp home edition. I have stated a new test. I chose to record a new test in the new test wizard. chosen script language is vbscript. when pressing start record a new internet explorer window open. I go to any url adn browse through its pages, hwoever my actions are not recorded. please assist, how can i fix the...
1
1388
by: ministry | last post by:
when i try to open an attachment of MS word, in internet explorer following error occured, Error Message internet explorer was not open this internet site. the request site is either unavailable or can not be found .
28
3583
by: Neo Geshel | last post by:
NOTE: PAST EXPERIENCE HAS SHOWN ME THAT MANY ON USENET FAIL TO READ ARTICLES PROPERLY PRIOR TO ANSWERING. I AM LOOKING FOR VERY SPECIFIC INFORMATION, THEREFORE PLEASE READ AND UNDERSTAND THOROUGHLY BEFORE RESPONDING; OR ASK QUESTIONS TO CLARIFY. I *WILL* APPRECIATE ANY CONSTRUCTIVE REPLY. Greetings! I am in the process of creating a template for a site. The site will be *true* XHTML 1.1. That is, it will validate as XHTML 1.1 on...
0
8404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8931
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...
0
8828
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7446
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
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
5705
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
4227
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...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
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

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.