From lars_huttar at sil.org Mon Oct 1 09:24:02 2007 From: lars_huttar at sil.org (Lars Huttar) Date: Mon Oct 1 09:37:09 2007 Subject: [ptt-users] patch for agentbase.py Message-ID: <47011F22.6080807@sil.org> Hello, I made a few modifications to agentbase.py to make it more amenable to unit and functional testing of web applications. As far as I can tell, currently the only kinds of verification supported are: - going to a URL (via click or goto) succeeded, that is, returned an HTTP success code - the title of a page is the expected string Often, you want to check that data is correct, e.g. that the application returned the correct data value for a query. To do this, you want to check the content returned. I modified the get() and post() functions to return the content as a string, so that these checks could be performed more easily by jython scripts. The proposed patch is attached. It would also be useful to add utility functions for checking that the returned content contains (or doesn't contain) a specified string: def mustContain(self, content, requiredString, diagnostic): '''Assert that content contains requiredString; else raise exception with diagnostic message.''' def mustNotContain(self, content, requiredString, diagnostic): '''Assert that content does not contain requiredString; else raise exception with diagnostic message.''' And it would be nice to have built-in support for XPath expressions, so that this doesn't have to be done by hand each time: def evalXPath(self, content, xpathExpr): '''Evaluate XPath expression with regard to content, and return result.''' This could be used either for boolean tests: not(/*/body//p[contains(., 'error')]) or retrieving values /*/body//table[@class = 'accountDetails']/tr[td[1] = 'State']]/td[2] Is there already support for these kinds of things, and I missed it? If not, I would be happy to work on this, although I'm sure there are others who are more familiar with the relevant Python libraries. Regards, Lars From lars_huttar at sil.org Mon Oct 1 09:27:54 2007 From: lars_huttar at sil.org (Lars Huttar) Date: Mon Oct 1 09:40:34 2007 Subject: [ptt-users] Re: patch for agentbase.py In-Reply-To: <47011F22.6080807@sil.org> References: <47011F22.6080807@sil.org> Message-ID: <4701200A.1090708@sil.org> Oops, forgot to attach the patch. Here it is. Lars On 10/1/2007 11:24 AM, Lars Huttar wrote: > Hello, > I made a few small modifications to agentbase.py to make it more > amenable to unit- and functional testing of web applications. > As far as I can tell, currently the only kinds of verification > supported are: > - going to a URL (via click or goto) succeeded, that is, returned an > HTTP success code > - the title of a page is the expected string > > Often, you want to check that data is correct, e.g. that the > application returned the correct data value for a query. To do this, > you want to check the content returned. > I modified the get() and post() functions to return the content as a > string, so that these checks could be performed more easily by jython > scripts. > > The proposed patch is attached. > > It would also be useful to add utility functions for checking that the > returned content contains (or doesn't contain) a specified string: > def mustContain(self, content, requiredString, diagnostic): > '''Assert that content contains requiredString; else raise > exception with diagnostic message.''' > def mustNotContain(self, content, requiredString, diagnostic): > '''Assert that content does not contain requiredString; else raise > exception with diagnostic message.''' > > And it would be nice to have built-in support for XPath expressions, > so that this doesn't have to be done by hand each time: > def evalXPath(self, content, xpathExpr): > '''Evaluate XPath expression with regard to content, and return > result.''' > This could be used either for boolean tests: > not(/*/body//p[contains(., 'error')]) > or retrieving values > /*/body//table[@class = 'accountDetails']/tr[td[1] = 'State']]/td[2] > > Is there already support for these kinds of things, and I missed it? > If not, I would be happy to work on this, although I'm sure there are > others who are more familiar with the relevant Python libraries. > > Regards, > Lars > > > > -------------- next part -------------- *** agentbase.py.orig Mon Aug 13 13:59:18 2007 --- agentbase.py Fri Sep 28 14:08:59 2007 *************** *** 140,145 **** --- 140,146 ---- self.steps = 0 # Counter of steps in transaction def get( self, url, paramsin=None ): + '''Make GET request to URL with params, and return response''' self.params = paramsin self.curl = url *************** *** 167,175 **** self.paramval = "?" + self.paramval # Form request and connect ! self.connect( self.curl + self.paramval ) def post( self, url, params=None ): self.params = params self.curl = url --- 168,177 ---- self.paramval = "?" + self.paramval # Form request and connect ! return self.connect( self.curl + self.paramval ) def post( self, url, params=None ): + '''Make POST request to URL with params, and return response''' self.params = params self.curl = url *************** *** 186,195 **** for self.param in self.params: self.body.addParameter( self.param[0], self.param[1] ) ! self.connect( self.curl ) def connect( self, url ): ! ''' Checks the response for an error and logs the results ''' self.url = url --- 188,197 ---- for self.param in self.params: self.body.addParameter( self.param[0], self.param[1] ) ! return self.connect( self.curl ) def connect( self, url ): ! '''Connect to URL, check the response for an error, log the results, and return the response''' self.url = url *************** *** 228,234 **** return self.response def errMsg( self ): ! ''' Returns the error message showing the cause of a problem ''' return "Step " + str( self.steps ) + \ " got response " + str( self.response.getResponseCode() ) + \ " when requesting: '" + self.http.getURL("http") --- 230,236 ---- return self.response def errMsg( self ): ! ''' Return the error message showing the cause of a problem ''' return "Step " + str( self.steps ) + \ " got response " + str( self.response.getResponseCode() ) + \ " when requesting: '" + self.http.getURL("http") From fcohen at pushtotest.com Mon Oct 1 15:29:51 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Mon Oct 1 15:42:37 2007 Subject: [ptt-users] Re: patch for agentbase.py In-Reply-To: <4701200A.1090708@sil.org> References: <47011F22.6080807@sil.org> <4701200A.1090708@sil.org> Message-ID: <4673673C-E37C-4E98-95F7-CD527332613F@pushtotest.com> Dear Lars: Thank you for the patch. I opened a ticket to track the change: http://bugs.pushtotest.com/ticket/163 >> Hello, >> I made a few small modifications to agentbase.py to make it more >> amenable to unit- and functional testing of web applications. >> As far as I can tell, currently the only kinds of verification >> supported are: >> - going to a URL (via click or goto) succeeded, that is, returned >> an HTTP success code >> - the title of a page is the expected string >> >> Often, you want to check that data is correct, e.g. that the >> application returned the correct data value for a query. To do >> this, you want to check the content returned. >> I modified the get() and post() functions to return the content as >> a string, so that these checks could be performed more easily by >> jython scripts. Your patches look good and I will make sure they are incorporated into the next TestMaker. >> The proposed patch is attached. >> >> It would also be useful to add utility functions for checking that >> the returned content contains (or doesn't contain) a specified >> string: >> def mustContain(self, content, requiredString, diagnostic): >> '''Assert that content contains requiredString; else raise >> exception with diagnostic message.''' >> def mustNotContain(self, content, requiredString, diagnostic): >> '''Assert that content does not contain requiredString; else >> raise exception with diagnostic message.''' >> >> And it would be nice to have built-in support for XPath >> expressions, so that this doesn't have to be done by hand each time: >> def evalXPath(self, content, xpathExpr): >> '''Evaluate XPath expression with regard to content, and return >> result.''' >> This could be used either for boolean tests: >> not(/*/body//p[contains(., 'error')]) >> or retrieving values >> /*/body//table[@class = 'accountDetails']/tr[td[1] = 'State']]/ >> td[2] >> >> Is there already support for these kinds of things, and I missed it? >> If not, I would be happy to work on this, although I'm sure there >> are others who are more familiar with the relevant Python libraries. These suggestions look like good and appropriate enhancements to agentbase.py. Regex expressions are already in use in agentbase.py to evaluate the HTTP response code (that a look at successcodes.) Adding an XPath expression evaluator would be a good addition. TestMaker already ships with Xerces for an XPath evaluator. What do you think? -Frank > > *** agentbase.py.orig Mon Aug 13 13:59:18 2007 > --- agentbase.py Fri Sep 28 14:08:59 2007 > *************** > *** 140,145 **** > --- 140,146 ---- > self.steps = 0 # Counter of > steps in transaction > > def get( self, url, paramsin=None ): > + '''Make GET request to URL with params, and return > response''' > self.params = paramsin > self.curl = url > > *************** > *** 167,175 **** > self.paramval = "?" + self.paramval > > # Form request and connect > ! self.connect( self.curl + self.paramval ) > > def post( self, url, params=None ): > self.params = params > self.curl = url > > --- 168,177 ---- > self.paramval = "?" + self.paramval > > # Form request and connect > ! return self.connect( self.curl + self.paramval ) > > def post( self, url, params=None ): > + '''Make POST request to URL with params, and return > response''' > self.params = params > self.curl = url > > *************** > *** 186,195 **** > for self.param in self.params: > self.body.addParameter( self.param[0], self.param > [1] ) > > ! self.connect( self.curl ) > > def connect( self, url ): > ! ''' Checks the response for an error and logs the results > ''' > > self.url = url > > --- 188,197 ---- > for self.param in self.params: > self.body.addParameter( self.param[0], self.param > [1] ) > > ! return self.connect( self.curl ) > > def connect( self, url ): > ! '''Connect to URL, check the response for an error, log > the results, and return the response''' > > self.url = url > > *************** > *** 228,234 **** > return self.response > > def errMsg( self ): > ! ''' Returns the error message showing the cause of a > problem ''' > return "Step " + str( self.steps ) + \ > " got response " + str( self.response.getResponseCode() ) > + \ > " when requesting: '" + self.http.getURL("http") > --- 230,236 ---- > return self.response > > def errMsg( self ): > ! ''' Return the error message showing the cause of a > problem ''' > return "Step " + str( self.steps ) + \ > " got response " + str( self.response.getResponseCode() ) > + \ > " when requesting: '" + self.http.getURL("http") > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426 TestMaker: The open-source SOA test automation tool From lars_huttar at sil.org Mon Oct 1 15:42:49 2007 From: lars_huttar at sil.org (Lars Huttar) Date: Mon Oct 1 15:55:30 2007 Subject: [ptt-users] Re: patch for agentbase.py In-Reply-To: <4673673C-E37C-4E98-95F7-CD527332613F@pushtotest.com> References: <47011F22.6080807@sil.org> <4701200A.1090708@sil.org> <4673673C-E37C-4E98-95F7-CD527332613F@pushtotest.com> Message-ID: <470177E9.7010305@sil.org> On 10/1/2007 5:29 PM, Frank Cohen wrote: > Dear Lars: > > Thank you for the patch. I opened a ticket to track the change: > http://bugs.pushtotest.com/ticket/163 > >>> Hello, >>> I made a few small modifications to agentbase.py to make it more >>> amenable to unit- and functional testing of web applications. >>> As far as I can tell, currently the only kinds of verification >>> supported are: >>> - going to a URL (via click or goto) succeeded, that is, returned an >>> HTTP success code >>> - the title of a page is the expected string >>> >>> Often, you want to check that data is correct, e.g. that the >>> application returned the correct data value for a query. To do this, >>> you want to check the content returned. >>> I modified the get() and post() functions to return the content as a >>> string, so that these checks could be performed more easily by >>> jython scripts. > > Your patches look good and I will make sure they are incorporated into > the next TestMaker. > Great. Thank you. > >>> The proposed patch is attached. >>> >>> It would also be useful to add utility functions for checking that >>> the returned content contains (or doesn't contain) a specified string: >>> def mustContain(self, content, requiredString, diagnostic): >>> '''Assert that content contains requiredString; else raise >>> exception with diagnostic message.''' >>> def mustNotContain(self, content, requiredString, diagnostic): >>> '''Assert that content does not contain requiredString; else >>> raise exception with diagnostic message.''' >>> >>> And it would be nice to have built-in support for XPath expressions, >>> so that this doesn't have to be done by hand each time: >>> def evalXPath(self, content, xpathExpr): >>> '''Evaluate XPath expression with regard to content, and return >>> result.''' >>> This could be used either for boolean tests: >>> not(/*/body//p[contains(., 'error')]) >>> or retrieving values >>> /*/body//table[@class = 'accountDetails']/tr[td[1] = 'State']]/td[2] >>> >>> Is there already support for these kinds of things, and I missed it? >>> If not, I would be happy to work on this, although I'm sure there >>> are others who are more familiar with the relevant Python libraries. > > > These suggestions look like good and appropriate enhancements to > agentbase.py. Regex expressions are already in use in agentbase.py to > evaluate the HTTP response code (that a look at successcodes.) Adding > an XPath expression evaluator would be a good addition. TestMaker > already ships with Xerces for an XPath evaluator. > > What do you think? > Sounds perfect. If I continue to have time tomorrow, I will work on it, unless I hear that somebody else will do it. Regards, Lars From lars_huttar at sil.org Mon Oct 1 17:29:21 2007 From: lars_huttar at sil.org (Lars Huttar) Date: Mon Oct 1 17:42:02 2007 Subject: [ptt-users] Re: NPE in ScriptRunner.methodFromCall(ScriptRunner.java:239) In-Reply-To: <963C9604-AFBD-4FB6-93CA-5249E390A2BF@denali.be> References: <46FD7AC1.9010307@sil.org> <46FD7F4A.4080907@sil.org> <963C9604-AFBD-4FB6-93CA-5249E390A2BF@denali.be> Message-ID: <470190E1.2000504@sil.org> On 9/28/2007 5:45 PM, Olivier Dony wrote: > On Sep 29, 2007, at 12:25 AM, Lars Huttar wrote: > >> Well, that particular error was apparently caused by the fact that I >> was missing a langtype attribute on my element: >> > module="ethnunit" name="test1" testclass="HTTPExample" >> method="runtest" /> >> >> After supplying langtype="jython", that particular NPE goes away. >> Hopefully that could be fixed to tell the user they're missing a >> langtype attribute, if it is indeed required. >> >> Now I get a different set of errors: >> >> java.lang.NullPointerException >> at java.io.FileInputStream.(Unknown Source) >> at java.io.FileInputStream.(Unknown Source) >> at java.io.FileReader.(Unknown Source) >> at >> com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner.argumentsFormCallScript(ScriptRunner.java:488) >> > Could it be that the ScriptRunner cannot access your script file? > Maybe something to do with the way the file path is written? Apparently you were right. I replaced the "C:/..." syntax with "../../", and those errors went away. Lars From idealone5 at hotmail.com Fri Oct 5 04:01:40 2007 From: idealone5 at hotmail.com (Sheky ls) Date: Fri Oct 5 04:15:13 2007 Subject: [ptt-users] Problem installing TEST MAKER 5 Message-ID: Hi All, I download latest Test Maker 5 file, "PushToTest_TestMaker_Install_Windows.jar"...when i unzip it as i dont see any other way of installing it... i see buch of folders ..but i dont see any 'bat' file or Testmaker home folder? Is there anything else iam missing out during installation!! Cheers ideal _________________________________________________________________ Windows Live Spaces is here! It?s easy to create your own personal Web site. http://spaces.live.com/?mkt=en-in -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071005/27fd9dc0/attachment.htm From fcohen at pushtotest.com Fri Oct 5 07:02:21 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Fri Oct 5 07:16:00 2007 Subject: [ptt-users] Problem installing TEST MAKER 5 In-Reply-To: References: Message-ID: <34095096-FA66-4AD4-9E4C-019753C22B2C@pushtotest.com> Dear Ideal: Thank you for downloading TestMaker 5. The .jar file is a Java archive and needs to be run by the Java Runtime Environment (JRE) installed on your machine. So don't extract the files but instead run the .jar file. You can get the JRE at http://www.java.com. In TestMaker 5.0.1 and later (which will come out later this month) we will be changing the download mechanism to make it easier. (http:// bugs.pushtotest.com/ticket/130) Please let me know your progress on installing TestMaker. Thanks. -Frank On Oct 5, 2007, at 4:01 AM, Sheky ls wrote: > Hi All, > I download latest Test Maker 5 file, > "PushToTest_TestMaker_Install_Windows.jar"...when i unzip it as i > dont see any other way of installing it... > i see buch of folders ..but i dont see any 'bat' file or Testmaker > home folder? > > Is there anything else iam missing out during installation!! > > Cheers > ideal > > Windows Live Spaces is here! It?s easy to create your own personal > Web site. Check it out! > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426 TestMaker: The open-source SOA test automation tool From JColina at actsoft.com Mon Oct 8 12:15:44 2007 From: JColina at actsoft.com (Juan Colina) Date: Mon Oct 8 12:30:29 2007 Subject: FW: [ptt-users] Problem installing TEST MAKER 5 Message-ID: <9D06D6B2273B3240909ACE5EBD76EF43012897D8@POSTMASTER.actsoft.com> Unsubscribe me please Juan J. Colina Quality Assurance Supervisor Desk: (813) 936-2331 ext. 5201 Fax: (813) 936-7541 www.actsoft.com Click here for demo -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen Sent: Friday, October 05, 2007 10:02 AM To: TestMaker users list Subject: Re: [ptt-users] Problem installing TEST MAKER 5 Dear Ideal: Thank you for downloading TestMaker 5. The .jar file is a Java archive and needs to be run by the Java Runtime Environment (JRE) installed on your machine. So don't extract the files but instead run the .jar file. You can get the JRE at http://www.java.com. In TestMaker 5.0.1 and later (which will come out later this month) we will be changing the download mechanism to make it easier. (http:// bugs.pushtotest.com/ticket/130) Please let me know your progress on installing TestMaker. Thanks. -Frank On Oct 5, 2007, at 4:01 AM, Sheky ls wrote: > Hi All, > I download latest Test Maker 5 file, > "PushToTest_TestMaker_Install_Windows.jar"...when i unzip it as i > dont see any other way of installing it... > i see buch of folders ..but i dont see any 'bat' file or Testmaker > home folder? > > Is there anything else iam missing out during installation!! > > Cheers > ideal > > Windows Live Spaces is here! It's easy to create your own personal > Web site. Check it out! > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426 TestMaker: The open-source SOA test automation tool _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users The ActSoft mail system has scanned this email, and certifies that it is virus free. If you have concerns about an email you received from us, please contact [IT@actsoft.com]. From avinash2225 at yahoo.com Mon Oct 8 14:26:03 2007 From: avinash2225 at yahoo.com (Avinash) Date: Mon Oct 8 14:40:44 2007 Subject: [ptt-users] load test Message-ID: <646831.89692.qm@web63301.mail.re1.yahoo.com> Hi, I am a student and am working on a project to load test a web application developed in Ajax and over https://. I was trying to use Pushtotest to record a test: login into the web application click log out dialogue box opens 'Are you sure' click 'yes' page logs out. With pushtotest using mozilla I recorded the test...but not able to convert it into the load test as the tutorial is explaning based on jython and I am not sure how to edit it...can anyone help me out..thanks... Avinash --------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071008/22068a2b/attachment.htm From fcohen at pushtotest.com Mon Oct 8 14:47:49 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Mon Oct 8 15:02:33 2007 Subject: [ptt-users] load test In-Reply-To: <646831.89692.qm@web63301.mail.re1.yahoo.com> References: <646831.89692.qm@web63301.mail.re1.yahoo.com> Message-ID: <40F56D0B-F0A3-45C0-B390-5CF855F5C79E@pushtotest.com> Dear Avinash: Thank you for using PushToTest TestMaker. The tutorial should show you how to record a test using the TestGen4Web add-on to Firefox. After you record a test and output it as an XML file, then from within TestMaker choose the Tools menu -> Import TestGen4Web. Did you do these steps? -Frank On Oct 8, 2007, at 2:26 PM, Avinash wrote: > Hi, > I am a student and am working on a project to load test a web > application developed in Ajax and over https://. I was trying to > use Pushtotest to record a test: > > login into the web application > click log out > dialogue box opens 'Are you sure' > click 'yes' > page logs out. > > With pushtotest using mozilla I recorded the test...but not able to > convert it into the load test as the tutorial is explaning based on > jython and I am not sure how to edit it...can anyone help me > out..thanks... > Avinash > > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: > mail, news, photos & more. > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122 TestMaker open-source test automation From bretn at npgfargo.com Wed Oct 17 12:32:38 2007 From: bretn at npgfargo.com (bretn@npgfargo.com) Date: Wed Oct 17 12:49:09 2007 Subject: [ptt-users] Mac Install Message-ID: <63550.65.183.254.2.1192649558.squirrel@www.npgfargo.com> Hello, I am trying to install PushtoTest v5 on Mac OS X 10.4.10. I have ran the .jar install file from your web page and am trying to run the TestMaker.sh file from the installed directory. On my first try the shell pops but doesn't do anything. I found the .profile recommendation on your web page and on closer inspection it is asking for jvm 1.6, 1.6 is evidently still in beta and not available for download on apples web page. Do you have a recommendation to help me complete this install? Any help will be much appreciated. Best, Bret From fcohen at pushtotest.com Wed Oct 17 14:13:06 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Wed Oct 17 14:30:02 2007 Subject: [ptt-users] Mac Install In-Reply-To: <63550.65.183.254.2.1192649558.squirrel@www.npgfargo.com> References: <63550.65.183.254.2.1192649558.squirrel@www.npgfargo.com> Message-ID: <7FBF345B-5CEC-4CEA-B8E8-4DCC0D7C15D8@pushtotest.com> Hi Bret: I'm a MacBook Pro user running 10.4.10. TestMaker requires Java 1.6 to support the ScriptEngine API that lets you write test scripts in a variety of scripting languages (Groovy, Ruby, etc.) If you are using the record/playback features then you can run TestMaker 5 under the Apple JVM 1.5. I have found the pre-release Apple JVM 1.6 to function pretty well. It crashes every once in a while. You can download it on the Apple Developer site. Hope this helps. -Frank On Oct 17, 2007, at 12:32 PM, bretn@npgfargo.com wrote: > Hello, > > I am trying to install PushtoTest v5 on Mac OS X 10.4.10. I have > ran the > .jar install file from your web page and am trying to run the > TestMaker.sh > file from the installed directory. On my first try the shell pops but > doesn't do anything. I found the .profile recommendation on your > web page > and on closer inspection it is asking for jvm 1.6, 1.6 is evidently > still > in beta and not available for download on apples web page. Do you > have a > recommendation to help me complete this install? Any help will be > much > appreciated. > > Best, > > Bret > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122 TestMaker open-source test automation From Per.Lentz.joergensen at jyskebank.dk Thu Oct 18 06:49:31 2007 From: Per.Lentz.joergensen at jyskebank.dk (=?iso-8859-1?Q?Per_Lentz__J=F8rgensen?=) Date: Thu Oct 18 07:06:26 2007 Subject: [ptt-users] Xpath expression Message-ID: <070253D30FB00442A7869CF838A27C911BDC4C@DA1633.JBMAIN00.CORP.JYSKEBANK.NET> H allo I'm evaluating the tool to see if its usable .. My scenarium is now that I have created a simple script with the FF plugin.. It has recorded a script which has put 2 values into Username and password and then it should push the submit button.. I works when I run it from the FF plugin. But when I run it from within pushto_test it doesn't work it appears that It can not find the submit button with the 'Xpath' used .. I have tried to find the real Xpath and replace that directly in the script .. But the code works thorugh a normalizer that convert this to garbage. --- Snippet of my Local Testnode log ---- oldXpath */FORM[1]/*/INPUT[@NAME="password"]: newXpath //form[1]//input[@name="password"] Element input = Element input set to wpsadmin Executing: click oldXpath */FORM[1]/INPUT[@TYPE="submit" and @VALUE="Login"]: newXpath //form[1]/input[@type="submit" and @value="Login"] Element null Error getting page null ------------------------ Is there any way to se the page that htmlunit is looking at? Regards Per -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071018/297436c0/attachment.htm From e.bandari at gmail.com Mon Oct 22 16:09:56 2007 From: e.bandari at gmail.com (Esfandiar Bandari) Date: Mon Oct 22 16:27:57 2007 Subject: [ptt-users] users@lists.pushtotest.com Message-ID: <3e6ac4eb0710221609t2e767bb0pe7161a329ebdb52d@mail.gmail.com> Hello, Frank recommended that I post my request to this list. I am looking for a programmer with Ajax/javascript background to create a simple user interface (DHTML with pop up menus). Any help will be greatly appreciated. My linkedIn web page below, gives you a bit my background as well. Thanks in advance, Esfandiar -- Esfandiar Bandari, PhD, MBA e.bandari@cantab.net, e.bandari@gmail.com skype & gtalk: e.bandari H. (650) 813-1512 Cell: (650) 862-8351 http://www.linkedin.com/in/ebandari -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071022/d67a0adf/attachment.htm From tpalexander at west.com Tue Oct 23 15:32:05 2007 From: tpalexander at west.com (Tim Alexander) Date: Tue Oct 23 15:50:44 2007 Subject: [ptt-users] A few large issues during installation of TM5 Message-ID: <1193178725.31655.28.camel@DRGNDesk> I'm fairly excited about the product, despite the issues I've encountered every step of the way thus far. First issue I encountered was that TestGen4Web does not work on Firefox as it is now. The plug in needs to be updated to work with the latest version of the browser, as for those security conscious among us, we don't use anything else standard. The Second issue is that the Monitor cannot be installed with the rest of the program either. It must be installed separately. It throws an error on installation that it can't find run.sh. This makes sense, as it is looking in the root install folder, and not in the subfolder PTTMonitor as it should be. I just recently figured this one out. The third issue is the lack of support. Yes, there is commercial support available, but I was under the understanding that this was an open source project, with a very large following. While this may still be true, I haven't seen it. I see a few emails every month in the archives of this Email list, and little else. I have yet to find any forums, or a Wiki for the project, as I would have expected of a small Open Source project, let alone a large one such as this. I am more than willing to provide a recommendation to purchase support (if we choose to go with Push To Test, we would not use it without commercial support) but I need to be sure of it's capabilities, and it's use first. So far, it's not what I expected, and it's not what I had hoped for, but I'm in QA. I work through issues I run into, and try not to judge the product based on my preconceptions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071023/40229b9b/attachment.htm From tpalexander at west.com Tue Oct 23 15:45:01 2007 From: tpalexander at west.com (Tim Alexander) Date: Tue Oct 23 16:03:34 2007 Subject: [ptt-users] Selenium Message-ID: <1193179501.31655.31.camel@DRGNDesk> I did have one point that I would like to address. As Selenium has a much more mature, and much more fully featured interface, why didn't Push To Test decide to go with that as thier recording interface? It would seem a more logical conclusion from the end user, but I assume that there is another reason for choosing TestGen4Web. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071023/fbcc0bc9/attachment.htm From fcohen at pushtotest.com Wed Oct 24 12:11:26 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Wed Oct 24 12:29:42 2007 Subject: [ptt-users] Hiring engineering resources Message-ID: <79064787-7FCF-4BFE-A026-C07CB69FA4B6@pushtotest.com> Dear TestMaker Users: We are looking to hire more engineering resources for the projects we have. 1) Scalability Test Project with a large Las Vegas Casino/Hotel - We are already coding a scalability and stress test based on TestMaker 5. I am using Avantica in Costa Rica. I have one engineer full time and 10% of an architect. The problem is the Casino/Hotel CIO wants/ expects us to do night and evening work. Avantica only offers business hours. I am looking for someone to take a hand-off in the evening and run with it, then hand it back to Avantica for daytime coding. The coding is mostly setting up configuration files to playback DB queries and also bug fixing in TestMaker. 2) Telnet-based ERP Scalability Test - We need to implement a scalability test of a telnet-based ERP application. We will need a telnet protocol handler in TOOL and up to 15 test scripts of various facets of their app. Our need is immediate. Please let me know your interest, availability, and cost. -Frank From tpalexander at west.com Wed Oct 24 16:42:04 2007 From: tpalexander at west.com (Tim Alexander) Date: Wed Oct 24 17:01:11 2007 Subject: [ptt-users] HTMLUnit Error Message-ID: <1193269324.31655.96.camel@DRGNDesk> When I run a test, I get fine response from the initial page, but then I get a com.gargoylesoftware.htmlunit.scriptexception error. This is the relevant part that I could see. I can't copy from the console window, so I can't do it that way, but I'm open to suggestions. window.eval()#1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071024/d081513e/attachment.htm From fcohen at pushtotest.com Fri Oct 26 22:18:01 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Fri Oct 26 22:36:55 2007 Subject: [ptt-users] TestMaker 5.1 distribution construction this weekend Message-ID: <1D3ADF47-4E89-49A8-B5F0-7BC2E5B08979@pushtotest.com> Dear TestMaker Users: I will be packing a distribution of TestMaker (5.1) to incorporate bug fixes and new features. I updated bug list. All the items marked as "critical" or "blocker" will go into this release: http://bugs.pushtotest.com/report/1 Please let me know your votes on this list, and let me know what is missing from the list. Thanks. -Frank -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122 TestMaker open-source test automation From fcohen at pushtotest.com Tue Oct 30 06:17:38 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Tue Oct 30 06:37:39 2007 Subject: [ptt-users] Updated the bug/enhancements list Message-ID: <8D2F4F95-DAC6-406D-A397-B3C774B96D7D@pushtotest.com> Hi TestMaker Users: We are making good progress towards a TestMaker 5.1 distribution. This morning I updated the bug/enhancements list. http://bugs.pushtotest.com/report/1 We intend to solve the tickets marked blocker/critical in TestMaker 5.1. Please let us know if you agree/disagree with the priority of the changes. Thanks. -Frank -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122 TestMaker open-source test automation From rodionovp at gmail.com Wed Oct 31 06:28:54 2007 From: rodionovp at gmail.com (Pavel Rodionov) Date: Wed Oct 31 06:49:02 2007 Subject: [ptt-users] Using axis with testmaker Message-ID: Our company has decided to try widely-advertised PushToTest Testmaker. We have a system with 2 frontends : web and WS (web service). We have some functional tests already that checked WS frontend. And for us the question arose: to integrate this tests and to use it like performance,scalability test and etc.Our tests was written using AXIS, yes yes yes i know that soapUI included in testmaker, but task was to use existing tests in TestMaker. So our strategy was to make SIMPLY WORKED solution in testmaker (just to see that testmaker can do its work).So we use an example notificationTest.xml which located in notificationsExample directory and modify it for using our tests. We copy all AXIS libs into lib directory of TestMaker installation directory, and started test. Ouch! So many NullPointerException arised. So we try another way : we build our tests.jarwith all axis libs. But again NullPointerException. Is TestMaker don't like alien libs? Or we simply don't know abracadabra word? . Sorry for asking here but the TestMaker is lack of good documentation. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20071031/6e83c273/attachment.htm From fcohen at pushtotest.com Wed Oct 31 07:27:28 2007 From: fcohen at pushtotest.com (Frank Cohen) Date: Wed Oct 31 07:47:22 2007 Subject: [ptt-users] Using axis with testmaker In-Reply-To: References: Message-ID: <201D6578-181F-42CA-8818-A1600D77918A@pushtotest.com> Hi Pavel: Thanks for using TestMaker. If I understand you correctly, you have a client (consumer) to a SOAP- based Web service implemented using Apache Axis. You want to automate the client's execution as a load test using TestMaker. Is that correct? Did you create a TestScenario XML document to call the client? If so, please send me the document. What are the Null Pointer Exceptions (NPE) you are getting? -Frank On Oct 31, 2007, at 7:28 AM, Pavel Rodionov wrote: > Our company has decided to try widely-advertised PushToTest > Testmaker. We have a system with 2 frontends : web and WS (web > service). We have some functional tests already that checked WS > frontend. And for us the question arose: to integrate this tests > and to use it like performance,scalability test and etc.Our tests > was written using AXIS, yes yes yes i know that soapUI included in > testmaker, but task was to use existing tests in TestMaker. So our > strategy was to make SIMPLY WORKED solution in testmaker (just to > see that testmaker can do its work).So we use an example > notificationTest.xml which located in notificationsExample > directory and modify it for using our tests. We copy all AXIS libs > into lib directory of TestMaker installation directory, and started > test. Ouch! So many NullPointerException arised. So we try another > way : we build our tests.jar with all axis libs. But again > NullPointerException. Is TestMaker don't like alien libs? Or we > simply don't know abracadabra word? . Sorry for asking here but the > TestMaker is lack of good documentation. > > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122 TestMaker open-source test automation