473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 dispatchWithEvents 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._GetInterfaceCount() to see if
I was getting loads of references but I only have 2.

Thanks,
Chris
Jul 18 '05 #1
1 1879
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
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
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...
0
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...
0
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...
133
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...
60
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...
2
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...
1
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...
28
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...

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.