Thanks for the replies...but the solution doesnt seem to work for me. All the test cases run, evn though i want to run only 2 of the three test cases.
Currently i am using Eclipse IDE for running the tests but in future i plan to run the test suites through command line. Any pointers regarding how to run the test suite from command line?
User Profile
Collapse
-
creating test suites
I am a newbie and that says it all about posting a basic doubt. I still hope someone helps me out .
I am unit testing some modules. My test module is in diff file than the modules
to be tested. My code is something like this :
<PRE>
class xyz(unittest.Te stCase):
def testAbc():
.....
def testPqr():
.....
def testKlm():... -
Pamie mehtod : textAreaGet (name) takes an argement which is: The name, id or index of the textarea. But, i dont have any such id, which is the unfortunate thing.Leave a comment:
-
Thnaks a lott fredrick. U have been very helpful.
Just wanted to know from where to get the list of attributes/methods for an object ? Say, u call page.getElement Id(), how are u arriving at the .method? I am using an IDE which doesnt support auto completion. I am getting stuck with the methods which are available for a particular object.Leave a comment:
-
Hey! thanks for the explanation.
What i want to do next is enter text in the text box and click 'Saerch'. Any pointers regarding how to do that?
The real prb is where the gui elements have no ids associated in the respective html doc.Leave a comment:
-
Adding further to my query, how to identify the elements on the web page which do not have any id mentioned in the html text ?Leave a comment:
-
-
automate testing a website/page
hello,
I am trying to open up a webpage, say "http://gmail.com", enter username, passwd, click on submit button and do loads of other things - ALL THROUGH AUTOMATION, writing a script in python.
I tried my hands at cPAMIE but facing prbs regading the ids of the gui elements i.e. the places where id of a particular gui element is not mentioned in the htm source file, we cannot use the cPAMIE methods.
... -
I tried using com to achieve my goal i.e to manipulate various ui components on a web page.
I dont know why, but this seemingly correct code gives following error :
-------------------------------------------------- Code---------------------------------------------------------
<b>
Code:import win32com.client ie = win32com.client.Dispatch("InternetExplorer.Application") ie.Visible
Leave a comment:
-
I would elaborate my prev mail a bit. Say, i am havaing a html code for a web page:
<html>
<body>
<table>
<tr>
<td>"<a href="">abc"</a></td>
<td>"xyz"</td>
</tr>
<tr>
<td>"123"</td>
<td>"456"</td>
</tr>...Leave a comment:
-
Hello,
cPAMIE definetly looks like an easier way but i am facing problems in extracting elements out of the tables, where in the tags in the html source view dont mention any id for the table identification.
All the functions related to the tables, ask for an id to be mentioned, which is unavailable to me. Do you see any solution?Leave a comment:
-
Thanks a lot indeed!!!
Can one use cPAMIE module to do the same stuff ? i read about this this module in some of the other posting. Is looks simpler to use. Could there be some disadvantages of using the cPAMIE module? Please do let me know.Leave a comment:
-
manipulating gui elements on a web page
I am a newbie to the python world. I am trying my hands at one task:
I am trying to access a website, say, "http://xyz.com" and then trying to maniulate the gui elememts already present on the page.
I am able to open the site using:
webbrowser.open ("http://xyz.com")
But now, i have to enter some text in a text box and click on the button, which i am unaware how to do...
No activity results to display
Show More
Leave a comment: