From fcohen at pushtotest.com Wed Mar 5 09:34:43 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Mon Mar 10 21:37:44 2008 Subject: [ptt-users] Selenium users out there? Message-ID: <5DEFA774-804E-4D27-AB7B-6BF53E7690CB@pushtotest.com> Hi TestMaker Users: I'm using Selenium to build a test of an Ajax application. I will run the test in PushToTest (of course!) I'm using Selenium IDE 0.8.7 with Firefox 2.0.0.12 on a MacBook Pro. I am trying to create a Selenium functional test of an Ajax application. The app is available at: http: //partner.tvguide.com/mgov1/TVGuide/Default/ListingsGrid.aspx The ListingsGrid page offers two things that challenge me: 1) Clicking the Time Zone link (to the left of the login line at the upper left) opens a pop-up dialog box. Selenium IDE does not record the click on the Time Zone link. It does record my click of one of the time zone rows in the table that appears in the pop-up dialog box. 2) The Time Selector control is a horizontal bar of time periods. Users can click-and-drag the bar's "thumb" to change the time period. This is 100% Ajax and Selenium IDE does not record any of the click- and-drag events. I would be fine if the answer is that I need to add my own commands to the Selenium recording. Is there any advice or documentation you could point me to? -Frank Cohen http://www.pushtotest.com -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company From Timothy.Jones at syniverse.com Tue Mar 11 05:51:33 2008 From: Timothy.Jones at syniverse.com (Timothy Jones) Date: Tue Mar 11 06:43:46 2008 Subject: [ptt-users] Selenium users out there? In-Reply-To: <5DEFA774-804E-4D27-AB7B-6BF53E7690CB@pushtotest.com> References: <5DEFA774-804E-4D27-AB7B-6BF53E7690CB@pushtotest.com> Message-ID: <044F2EDDF4FCA24A965ECAA66CB9345C019136E9@vdsexc02> Hi, Frank. I have been working on an end-to-end functional test for an internal web-based application based on Selenium 0.9.2 (the Java flavor). I used the recording feature to save a session initially, and saved it as Java source code. Since that initial recording, I have expanded the program to iterate through all the data that appears within the app, and it exercises each and every one of the GUI controls (mostly drop-down lists, but some numeric filter fields as well). I even put a Swing front end on it, with a set of tabs with Jpanels in them, each one doing a separate test against a target browser, and now it can run any number of simultaneous regression tests against my app. I am currently running this against the Windows XP browsers (FF, IE7, and Opera), Linux browsers (FF, Konqueror and Opera), and against a Windows 2000 VM instance (IE6). I did not run into any problems with events that would not show up in the recording, then again, I only made that first and only recording through the -IDE extension. Rather, because I found the API easy enough to use directly, the program has become proficient at screen-scraping through the Xpath and Javascript facilities. These are the only problems I have found so far: * I did find it necessary to run the selenium-server.jar with the -multiWindow switch, and I also found it necessary to explicitly run window.open('', 'newwindowname') prior to submitting a
tag with a TARGET='newwindowname' attribute (otherwise the selenium-rc doesn't capture the creation of 'windowname', and then selenium.selectWindow() would fail). * There have been instances where I have been able to improve the performance of the test by modifying the application to add ID attributes to elements that previously did not have them, so that I could reference them in the test app by ID instead of Xpath, but there were not strictly necessary. * I found that tests would sometimes hang if I tried to conduct multiple selenium sessions through one instance of selenium-server.jar, so now, each targeted browser gets it's own dedicated selenium-server.jar JVM process (probably some race condition or object deadlock). * The only change I had to make to Selenium itself was to patch out something called killableprocess.exe (patch at http://jira.openqa.org/browse/SRC-394) - it was created for Vista's UAC but does not run at all in Win2000. To answer your question about Ajax: I only have one page in that app that uses Ajax at all, but the selenium.click("xpath-expression") call works well in it, and the selenium.getEval() call was able to get into the new DOM elements that my callback created. I have not experimented with drag-and-drop at all yet. You may just have to add these actions to your saved output, just as you suspect. Is there a specific reason you are using 0.8.7 instead of 0.9.2? (I have only used 0.9.2, as I am pretty new to selenium). tlj Timothy Jones tim@timjones.com timothy.jones@syniverse.com -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen Sent: Wednesday, March 05, 2008 12:35 PM To: TestMaker users list Subject: [ptt-users] Selenium users out there? Hi TestMaker Users: I'm using Selenium to build a test of an Ajax application. I will run the test in PushToTest (of course!) I'm using Selenium IDE 0.8.7 with Firefox 2.0.0.12 on a MacBook Pro. I am trying to create a Selenium functional test of an Ajax application. The app is available at: http: //partner.tvguide.com/mgov1/TVGuide/Default/ListingsGrid.aspx The ListingsGrid page offers two things that challenge me: 1) Clicking the Time Zone link (to the left of the login line at the upper left) opens a pop-up dialog box. Selenium IDE does not record the click on the Time Zone link. It does record my click of one of the time zone rows in the table that appears in the pop-up dialog box. 2) The Time Selector control is a horizontal bar of time periods. Users can click-and-drag the bar's "thumb" to change the time period. This is 100% Ajax and Selenium IDE does not record any of the click- and-drag events. I would be fine if the answer is that I need to add my own commands to the Selenium recording. Is there any advice or documentation you could point me to? -Frank Cohen http://www.pushtotest.com -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From DGeorgie at wiley.com Tue Mar 11 11:00:04 2008 From: DGeorgie at wiley.com (DGeorgie@wiley.com) Date: Tue Mar 11 11:52:18 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests Message-ID: I have problem with a functional test. When the script runs it generates these errors in the TestNode output. Executing time 0 TestRunListeners TestIndex Test #1/1 : ./localhost/ProfLogin_loop2.tg4w - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled The functional test was created based on a script generated by TestGen4Web 0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. The TestGen4Web script executes correctly in FireFox browser. I have found in TG4W forums other people with the same problem but no solution for the problem. I couldn't find any TestMaker setting that could affect the Redirect behavior which is really strange because I am sure most of modern Web applications are using redirects extensively. Without a support for it any testing tool would be useless. I also converted the TG4W script to a Java program hoping I would be able to tweak the Java code and enable the HTTP redirects. BTW the Jython translation didn't work. The generated code has a class which executes the test. InterpreterContext context = new InterpreterContext(this.config); I am still trying to find a documentation for this class. I need help with two things here: 1) how to correctly set -up the classpath to compile and execute the Java program 2) how to enable the HTTP redirects in the Java program. Thanks in advance! Dimitar From wmartinez at AVANTICATEC.NET Tue Mar 11 14:26:13 2008 From: wmartinez at AVANTICATEC.NET (=?US-ASCII?Q?William_Martinez_Pomares?=) Date: Tue Mar 11 15:19:54 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: Message-ID: <85A61B0FDDD4834EA295605C349BABAAB05CD7@dc1avantica.AVANTICA.AVANTICATEC.NET> Hi Dimitar. This is interesting. TG4W is a tool to record the steps of your interactions. When replayed in the browser, the tool is using the actual browser actions to repeat the steps. When used outside the browsers, TG4W uses the HTMLUnit product to replay the steps. HTMLUnit is a testing product that executes all the common browser actions without a IU. Internally, it uses another tool called httpclient from apache commons. So, when used in TM, it actually calls the HTMLUnit to perform all the recorded steps smulating a browser. Using a Jython or Java generated from the TG4W script will allow you to see all the steps and customize the calls to HTMLUnit. That error you see there, it seems, is a message in the HTMLUnit module but not an error. See what it is said about that in the HTMLUnit site: " I get error messages about redirection being disabled but I've turned it on. 26.02.2003 16:07:05 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled It's an annoyance that I haven't figured out how to fix yet. For a variety of reasons, I handle the redirection logic inside HtmlUnit rather than letting commons-httpclient handle it for me. It's commons-httpclient that is displaying that message because I have explicitly disabled its redirection support. I'd like to filter out that warning message but haven't figured out a clean way of doing it. A number of people have pointed out that it's easy to disable a message if you know which logger is being used. The problem is that there isn't a way to disable the messages without knowing the logger in use. " http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages So, it seems that message is not an error, but a unhandled warning from HTMLUnit guys. Furthermore. If TG4W fails, it will show the error and the trace. So, it seems there is yet no way to eliminate the message, but it also seems the steps are being correctly executed. Now, about the generation error: Could you please tell me what was the error when generating? Was it generating or running the generated asset? If you generated Jython, it will automatically work without any other setup (Jython is interpreted). If you generated Java, you will need to compile the java and pack it into a jar. In the TestScenario you will need to use the tag to indicate where the java jar is to be found. You can follow the "counterDPLExample". If you need more help please let me know. William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 1:00 PM To: users@lists.pushtotest.com Subject: [ptt-users] Enable redirect in TestMaker functional tests I have problem with a functional test. When the script runs it generates these errors in the TestNode output. Executing time 0 TestRunListeners TestIndex Test #1/1 : ./localhost/ProfLogin_loop2.tg4w - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled The functional test was created based on a script generated by TestGen4Web 0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. The TestGen4Web script executes correctly in FireFox browser. I have found in TG4W forums other people with the same problem but no solution for the problem. I couldn't find any TestMaker setting that could affect the Redirect behavior which is really strange because I am sure most of modern Web applications are using redirects extensively. Without a support for it any testing tool would be useless. I also converted the TG4W script to a Java program hoping I would be able to tweak the Java code and enable the HTTP redirects. BTW the Jython translation didn't work. The generated code has a class which executes the test. InterpreterContext context = new InterpreterContext(this.config); I am still trying to find a documentation for this class. I need help with two things here: 1) how to correctly set -up the classpath to compile and execute the Java program 2) how to enable the HTTP redirects in the Java program. Thanks in advance! Dimitar _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From DGeorgie at wiley.com Tue Mar 11 18:16:35 2008 From: DGeorgie at wiley.com (DGeorgie@wiley.com) Date: Tue Mar 11 19:08:54 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: <85A61B0FDDD4834EA295605C349BABAAB05CD7@dc1avantica.AVANTICA.AVANTICATEC.NET> Message-ID: Hi William, If I understood correctly I will need to modify the generated Java code to enable the HTTP redirect and then create another test scenario with TestMaker to run the Java code. How do I enable the HTTP redirect in the Java code? I am still researching the documentation and not sure how to enable it. Too bad HTMLUnit is not supporting redirects. It makes simple tests difficult, Thanks, Dimitar Georgievski William Martinez Pomares Sent by: users-bounces@lists.pushtotest.com 03/11/2008 06:26 PM Please respond to TestMaker users list To "TestMaker users list" cc Subject RE: [ptt-users] Enable redirect in TestMaker functional tests Hi Dimitar. This is interesting. TG4W is a tool to record the steps of your interactions. When replayed in the browser, the tool is using the actual browser actions to repeat the steps. When used outside the browsers, TG4W uses the HTMLUnit product to replay the steps. HTMLUnit is a testing product that executes all the common browser actions without a IU. Internally, it uses another tool called httpclient from apache commons. So, when used in TM, it actually calls the HTMLUnit to perform all the recorded steps smulating a browser. Using a Jython or Java generated from the TG4W script will allow you to see all the steps and customize the calls to HTMLUnit. That error you see there, it seems, is a message in the HTMLUnit module but not an error. See what it is said about that in the HTMLUnit site: " I get error messages about redirection being disabled but I've turned it on. 26.02.2003 16:07:05 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled It's an annoyance that I haven't figured out how to fix yet. For a variety of reasons, I handle the redirection logic inside HtmlUnit rather than letting commons-httpclient handle it for me. It's commons-httpclient that is displaying that message because I have explicitly disabled its redirection support. I'd like to filter out that warning message but haven't figured out a clean way of doing it. A number of people have pointed out that it's easy to disable a message if you know which logger is being used. The problem is that there isn't a way to disable the messages without knowing the logger in use. " http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages So, it seems that message is not an error, but a unhandled warning from HTMLUnit guys. Furthermore. If TG4W fails, it will show the error and the trace. So, it seems there is yet no way to eliminate the message, but it also seems the steps are being correctly executed. Now, about the generation error: Could you please tell me what was the error when generating? Was it generating or running the generated asset? If you generated Jython, it will automatically work without any other setup (Jython is interpreted). If you generated Java, you will need to compile the java and pack it into a jar. In the TestScenario you will need to use the tag to indicate where the java jar is to be found. You can follow the "counterDPLExample". If you need more help please let me know. William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 1:00 PM To: users@lists.pushtotest.com Subject: [ptt-users] Enable redirect in TestMaker functional tests I have problem with a functional test. When the script runs it generates these errors in the TestNode output. Executing time 0 TestRunListeners TestIndex Test #1/1 : ./localhost/ProfLogin_loop2.tg4w - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled The functional test was created based on a script generated by TestGen4Web 0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. The TestGen4Web script executes correctly in FireFox browser. I have found in TG4W forums other people with the same problem but no solution for the problem. I couldn't find any TestMaker setting that could affect the Redirect behavior which is really strange because I am sure most of modern Web applications are using redirects extensively. Without a support for it any testing tool would be useless. I also converted the TG4W script to a Java program hoping I would be able to tweak the Java code and enable the HTTP redirects. BTW the Jython translation didn't work. The generated code has a class which executes the test. InterpreterContext context = new InterpreterContext(this.config); I am still trying to find a documentation for this class. I need help with two things here: 1) how to correctly set -up the classpath to compile and execute the Java program 2) how to enable the HTTP redirects in the Java program. Thanks in advance! Dimitar _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From olivier.dony at denali.be Wed Mar 12 02:26:37 2008 From: olivier.dony at denali.be (Olivier Dony) Date: Wed Mar 12 03:18:47 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: References: Message-ID: On Mar 12, 2008, at 3:16 AM, DGeorgie@wiley.com wrote: > How do I enable the HTTP redirect in the > Java code? I am still researching the documentation and not sure > how to > enable it. You don't need to enable it, it works by default. The messages you see about it being disabled are spurious logs produced by an underlying library, but they have absolutely no impact on the result. If they really annoy you, it is quite simple to hide them (even without knowing the actual loggin system used) with a few lines of java code, e.g: // attempt to disable commons-httpclient logging try { java.util.logging.Logger.getLogger ("org.apache.commons.httpclient.HttpMethodDirector").setLevel (java.util.logging.Level.OFF); // java.util.logging org.apache.log4j.Logger.getLogger ("org.apache.commons.httpclient.HttpMethodDirector").setLevel (org.apache.log4j.Level.OFF); // log4j logging } catch (Throwable t) { /* ignored, we're just trying to turn off useless commons-http logging */ } > Too bad HTMLUnit is not supporting redirects. It makes simple tests > difficult, As stated, htmlunit does support redirect by default, don't worry about that part. If you'd like to be certain, there's a "setRedirectEnabled()" method on the WebClient object from htmlunit, but if you look into the code you will see that it is enabled by default. HTH, -- Olivier Dony Denali s.a., "Bridging the gap between Business and IT" Rue de Clairvaux 8, B-1348 Louvain-la-Neuve, Belgium Office: +32 10 43 99 51 Fax: +32 10 43 99 52 www.denali.be Legal Notice: This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message by mistake, please advise the sender immediately by return e-mail and delete this message from your system. Thank you for your cooperation. From DGeorgie at wiley.com Wed Mar 12 05:59:01 2008 From: DGeorgie at wiley.com (DGeorgie@wiley.com) Date: Wed Mar 12 06:51:37 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: Message-ID: That was really helpful but unfortunately I still have issue running the code both from TestMaker and the command line: Ideally I would like to run the code from the command line so I can integrate it with some automation scripts that can be run on demand, First I created a JAR file and try to run the Java code using new Functional Test in TestMaker: ==================================================================================== The test failed and the following error was generated: java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner$Excecuter.run(ScriptRunner.java:1330) java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.pushtotest.testmaker.XSTest.xml.TestScenario.ScriptRunner$Excecuter.run(ScriptRunner.java:1330) Second, i tried to run the program from the command line. I compileed the Java code using TestMaker.sh start-up script as a template to create the classpath. When I run the program from the command line I receive this error: =================================================================================================================================================== I will put my questions in front of the log output so they are not overlooked. 1) what is null/pttfrozen1_ProfLogin_loop2.tg4w_rec.html file? TestMaker created only pttfrozen1_ProfLogin_loop2.tg4w at the conversion. 2) any idea why the placeholder variables are not replaced with the actual values from the dataset? ./ProfLogin.sh (this script creates the classpath and starts ProfLogin_loop2_tg4w program) java.io.FileNotFoundException: null/pttfrozen1_ProfLogin_loop2.tg4w_rec.html (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:179) at java.io.FileOutputStream.(FileOutputStream.java:70) at java.io.FileWriter.(FileWriter.java:46) at com.spike.tg4w.htmlunit.XmlTestResultImpl.outputFileAsHtml(XmlTestResultImpl.java:126) at com.spike.tg4w.htmlunit.XmlTestResultImpl._startTest(XmlTestResultImpl.java:74) at com.spike.tg4w.htmlunit.XmlTestResultImpl.testStart(XmlTestResultImpl.java:159) at gen.tests.htmlunit.ProfLogin_loop2_tg4w.run(ProfLogin_loop2_tg4w.java:23) at gen.tests.htmlunit.ProfLogin_loop2_tg4w.runMe(ProfLogin_loop2_tg4w.java:152) at gen.tests.htmlunit.ProfLogin_loop2_tg4w.main(ProfLogin_loop2_tg4w.java:166) Mar 12, 2008 8:49:35 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: Enabling EasySSL Mar 12, 2008 8:49:36 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: parsing file:/home/dgeorgie/programs/PushToTest/TestMaker/tests/wplus/pttfrozen1_ProfLogin_loop2.tg4w Mar 12, 2008 8:49:36 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: setDatasets: Total datasets:1 Mar 12, 2008 8:49:36 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: setDatasets: initializing dataset: dt_servers with file /home/dgeorgie/programs/PushToTest/TestMaker/tests/wplus/wp_server.cvs Mar 12, 2008 8:49:36 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: Step start: 0 type=loop-dataset-dt_servers-server Mar 12, 2008 8:49:36 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: Step start: 1 type=goto Mar 12, 2008 8:49:36 AM com.spike.tg4w.htmlunit.XmlTestResultImpl info INFO: changing url to page: http://${dt_servers.wp_server}:${dt_servers.wp_port}/edugen/secure/index.uni ------------- ERROR ---------------- com.spike.tg4w.htmlunit.InterpreterException: error while fetching url: http://${dt_servers.wp_server}:${dt_servers.wp_port}/edugen/secure/index.uni at com.spike.tg4w.htmlunit.HtmlUnitInterpreter.handleAction_goto_url(HtmlUnitInterpreter.java:294) at gen.tests.htmlunit.ProfLogin_loop2_tg4w.run(ProfLogin_loop2_tg4w.java:61) at gen.tests.htmlunit.ProfLogin_loop2_tg4w.runMe(ProfLogin_loop2_tg4w.java:152) at gen.tests.htmlunit.ProfLogin_loop2_tg4w.main(ProfLogin_loop2_tg4w.java:166) Caused by: java.net.MalformedURLException: For input string: "${dt_servers.wp_port}" at java.net.URL.(URL.java:601) at java.net.URL.(URL.java:464) at java.net.URL.(URL.java:413) at com.spike.tg4w.htmlunit.HtmlUnitInterpreter.handleAction_goto_url(HtmlUnitInterpreter.java:292) ... 3 more error while fetching url: http://${dt_servers.wp_server}:${dt_servers.wp_port}/edugen/secure/index.uni ------------------------------------ [dgeorgie@zadar wplus]$ Dimitar Georgievski ---------------------------------------- Senior Unix Admin Electronic Support Services John Wiley & Sons, Inc. Tel: 201.748.5867 Cell: 917.295.1462 email: dgeorgie@wiley.com ---------------------------------------- Olivier Dony Sent by: users-bounces@lists.pushtotest.com 03/12/2008 06:26 AM Please respond to TestMaker users list To TestMaker users list cc Subject Re: [ptt-users] Enable redirect in TestMaker functional tests On Mar 12, 2008, at 3:16 AM, DGeorgie@wiley.com wrote: > How do I enable the HTTP redirect in the > Java code? I am still researching the documentation and not sure > how to > enable it. You don't need to enable it, it works by default. The messages you see about it being disabled are spurious logs produced by an underlying library, but they have absolutely no impact on the result. If they really annoy you, it is quite simple to hide them (even without knowing the actual loggin system used) with a few lines of java code, e.g: // attempt to disable commons-httpclient logging try { java.util.logging.Logger.getLogger ("org.apache.commons.httpclient.HttpMethodDirector").setLevel (java.util.logging.Level.OFF); // java.util.logging org.apache.log4j.Logger.getLogger ("org.apache.commons.httpclient.HttpMethodDirector").setLevel (org.apache.log4j.Level.OFF); // log4j logging } catch (Throwable t) { /* ignored, we're just trying to turn off useless commons-http logging */ } > Too bad HTMLUnit is not supporting redirects. It makes simple tests > difficult, As stated, htmlunit does support redirect by default, don't worry about that part. If you'd like to be certain, there's a "setRedirectEnabled()" method on the WebClient object from htmlunit, but if you look into the code you will see that it is enabled by default. HTH, -- Olivier Dony Denali s.a., "Bridging the gap between Business and IT" Rue de Clairvaux 8, B-1348 Louvain-la-Neuve, Belgium Office: +32 10 43 99 51 Fax: +32 10 43 99 52 www.denali.be Legal Notice: This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message by mistake, please advise the sender immediately by return e-mail and delete this message from your system. Thank you for your cooperation. _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From wmartinez at AVANTICATEC.NET Wed Mar 12 06:01:02 2008 From: wmartinez at AVANTICATEC.NET (=?US-ASCII?Q?William_Martinez_Pomares?=) Date: Wed Mar 12 06:54:31 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: Message-ID: <85A61B0FDDD4834EA295605C349BABAAB05DCF@dc1avantica.AVANTICA.AVANTICATEC.NET> Hi Dimitar. No, that is not what the message from HTMLUnit says. The guy from HTMLUnit uses HTTPUnit to perform the HTTP work. But for some reason, he disables HTTPUnit redirection and handles redirection manually in HTMLUnit, one layer above. The problem he faces is that HTTPUnit throws that warning and he does not know how to avoid it. The redirection is done in HTMLUnit, but HTTPUnit throws the warning since it does not know about it. So, there is no problem with redirecting, just an annoying message from an underlying module. Thus, your don't need to change Java Code. Actually, you can run the TG4W script using langtype ="tg4w" without needing to geenrate java nor jython code. Hope this clarifies. Regards, William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 8:17 PM To: TestMaker users list Subject: RE: [ptt-users] Enable redirect in TestMaker functional tests Hi William, If I understood correctly I will need to modify the generated Java code to enable the HTTP redirect and then create another test scenario with TestMaker to run the Java code. How do I enable the HTTP redirect in the Java code? I am still researching the documentation and not sure how to enable it. Too bad HTMLUnit is not supporting redirects. It makes simple tests difficult, Thanks, Dimitar Georgievski William Martinez Pomares Sent by: users-bounces@lists.pushtotest.com 03/11/2008 06:26 PM Please respond to TestMaker users list To "TestMaker users list" cc Subject RE: [ptt-users] Enable redirect in TestMaker functional tests Hi Dimitar. This is interesting. TG4W is a tool to record the steps of your interactions. When replayed in the browser, the tool is using the actual browser actions to repeat the steps. When used outside the browsers, TG4W uses the HTMLUnit product to replay the steps. HTMLUnit is a testing product that executes all the common browser actions without a IU. Internally, it uses another tool called httpclient from apache commons. So, when used in TM, it actually calls the HTMLUnit to perform all the recorded steps smulating a browser. Using a Jython or Java generated from the TG4W script will allow you to see all the steps and customize the calls to HTMLUnit. That error you see there, it seems, is a message in the HTMLUnit module but not an error. See what it is said about that in the HTMLUnit site: " I get error messages about redirection being disabled but I've turned it on. 26.02.2003 16:07:05 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled It's an annoyance that I haven't figured out how to fix yet. For a variety of reasons, I handle the redirection logic inside HtmlUnit rather than letting commons-httpclient handle it for me. It's commons-httpclient that is displaying that message because I have explicitly disabled its redirection support. I'd like to filter out that warning message but haven't figured out a clean way of doing it. A number of people have pointed out that it's easy to disable a message if you know which logger is being used. The problem is that there isn't a way to disable the messages without knowing the logger in use. " http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages So, it seems that message is not an error, but a unhandled warning from HTMLUnit guys. Furthermore. If TG4W fails, it will show the error and the trace. So, it seems there is yet no way to eliminate the message, but it also seems the steps are being correctly executed. Now, about the generation error: Could you please tell me what was the error when generating? Was it generating or running the generated asset? If you generated Jython, it will automatically work without any other setup (Jython is interpreted). If you generated Java, you will need to compile the java and pack it into a jar. In the TestScenario you will need to use the tag to indicate where the java jar is to be found. You can follow the "counterDPLExample". If you need more help please let me know. William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 1:00 PM To: users@lists.pushtotest.com Subject: [ptt-users] Enable redirect in TestMaker functional tests I have problem with a functional test. When the script runs it generates these errors in the TestNode output. Executing time 0 TestRunListeners TestIndex Test #1/1 : ./localhost/ProfLogin_loop2.tg4w - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled The functional test was created based on a script generated by TestGen4Web 0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. The TestGen4Web script executes correctly in FireFox browser. I have found in TG4W forums other people with the same problem but no solution for the problem. I couldn't find any TestMaker setting that could affect the Redirect behavior which is really strange because I am sure most of modern Web applications are using redirects extensively. Without a support for it any testing tool would be useless. I also converted the TG4W script to a Java program hoping I would be able to tweak the Java code and enable the HTTP redirects. BTW the Jython translation didn't work. The generated code has a class which executes the test. InterpreterContext context = new InterpreterContext(this.config); I am still trying to find a documentation for this class. I need help with two things here: 1) how to correctly set -up the classpath to compile and execute the Java program 2) how to enable the HTTP redirects in the Java program. Thanks in advance! Dimitar _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From DGeorgie at wiley.com Wed Mar 12 06:52:51 2008 From: DGeorgie at wiley.com (DGeorgie@wiley.com) Date: Wed Mar 12 07:45:18 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: <85A61B0FDDD4834EA295605C349BABAAB05DCF@dc1avantica.AVANTICA.AVANTICATEC.NET> Message-ID: Hi William, Sorry if my response was confusing. I think I understood what that message said. The fact is that I cannot run tg4w script directly from TestMaker if HTTP redirects are present. The redirect warning messages submitted in my first posting were from TestMaker trying to execute my tg4w script. You probably have seen my subsequent emails on this list. I tried to run the generated Java program directly from the command line and from TestMaker.. Both attempts were unsuccessful. I will need to get more familiar with the Java libraries before I can continue in this direction. Today I tried different approach. I used the Proxy recorder to generate a Jython script for my test. The result was very disappointing. The generated script blindly submits the Java session id to the server which naturally is expired and the ends up again on the log-in page. The script makes no effort even to verify whether it lads the correct page and continues to submit the request one after the other hitting the logging page over and over. I was hoping Test Maker will shorten my time to create and deploy a functional test script with no or minimal code modifications of the generated code. Now I think it is just easier and probably much faster for me to implement the whole test script from scratch using Perl modules that provide similar functionality but are much easier to maintain and run. Probably I could do the same thing with Jython but I don't see the point of using an obscure scripting language, which none of the admins here, would be willing to learn to maintain the testing scripts. Thanks, Dimitar Georgievski William Martinez Pomares Sent by: users-bounces@lists.pushtotest.com 03/12/2008 10:01 AM Please respond to TestMaker users list To "TestMaker users list" cc Subject RE: [ptt-users] Enable redirect in TestMaker functional tests Hi Dimitar. No, that is not what the message from HTMLUnit says. The guy from HTMLUnit uses HTTPUnit to perform the HTTP work. But for some reason, he disables HTTPUnit redirection and handles redirection manually in HTMLUnit, one layer above. The problem he faces is that HTTPUnit throws that warning and he does not know how to avoid it. The redirection is done in HTMLUnit, but HTTPUnit throws the warning since it does not know about it. So, there is no problem with redirecting, just an annoying message from an underlying module. Thus, your don't need to change Java Code. Actually, you can run the TG4W script using langtype ="tg4w" without needing to geenrate java nor jython code. Hope this clarifies. Regards, William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 8:17 PM To: TestMaker users list Subject: RE: [ptt-users] Enable redirect in TestMaker functional tests Hi William, If I understood correctly I will need to modify the generated Java code to enable the HTTP redirect and then create another test scenario with TestMaker to run the Java code. How do I enable the HTTP redirect in the Java code? I am still researching the documentation and not sure how to enable it. Too bad HTMLUnit is not supporting redirects. It makes simple tests difficult, Thanks, Dimitar Georgievski William Martinez Pomares Sent by: users-bounces@lists.pushtotest.com 03/11/2008 06:26 PM Please respond to TestMaker users list To "TestMaker users list" cc Subject RE: [ptt-users] Enable redirect in TestMaker functional tests Hi Dimitar. This is interesting. TG4W is a tool to record the steps of your interactions. When replayed in the browser, the tool is using the actual browser actions to repeat the steps. When used outside the browsers, TG4W uses the HTMLUnit product to replay the steps. HTMLUnit is a testing product that executes all the common browser actions without a IU. Internally, it uses another tool called httpclient from apache commons. So, when used in TM, it actually calls the HTMLUnit to perform all the recorded steps smulating a browser. Using a Jython or Java generated from the TG4W script will allow you to see all the steps and customize the calls to HTMLUnit. That error you see there, it seems, is a message in the HTMLUnit module but not an error. See what it is said about that in the HTMLUnit site: " I get error messages about redirection being disabled but I've turned it on. 26.02.2003 16:07:05 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled It's an annoyance that I haven't figured out how to fix yet. For a variety of reasons, I handle the redirection logic inside HtmlUnit rather than letting commons-httpclient handle it for me. It's commons-httpclient that is displaying that message because I have explicitly disabled its redirection support. I'd like to filter out that warning message but haven't figured out a clean way of doing it. A number of people have pointed out that it's easy to disable a message if you know which logger is being used. The problem is that there isn't a way to disable the messages without knowing the logger in use. " http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages So, it seems that message is not an error, but a unhandled warning from HTMLUnit guys. Furthermore. If TG4W fails, it will show the error and the trace. So, it seems there is yet no way to eliminate the message, but it also seems the steps are being correctly executed. Now, about the generation error: Could you please tell me what was the error when generating? Was it generating or running the generated asset? If you generated Jython, it will automatically work without any other setup (Jython is interpreted). If you generated Java, you will need to compile the java and pack it into a jar. In the TestScenario you will need to use the tag to indicate where the java jar is to be found. You can follow the "counterDPLExample". If you need more help please let me know. William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 1:00 PM To: users@lists.pushtotest.com Subject: [ptt-users] Enable redirect in TestMaker functional tests I have problem with a functional test. When the script runs it generates these errors in the TestNode output. Executing time 0 TestRunListeners TestIndex Test #1/1 : ./localhost/ProfLogin_loop2.tg4w - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled The functional test was created based on a script generated by TestGen4Web 0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. The TestGen4Web script executes correctly in FireFox browser. I have found in TG4W forums other people with the same problem but no solution for the problem. I couldn't find any TestMaker setting that could affect the Redirect behavior which is really strange because I am sure most of modern Web applications are using redirects extensively. Without a support for it any testing tool would be useless. I also converted the TG4W script to a Java program hoping I would be able to tweak the Java code and enable the HTTP redirects. BTW the Jython translation didn't work. The generated code has a class which executes the test. InterpreterContext context = new InterpreterContext(this.config); I am still trying to find a documentation for this class. I need help with two things here: 1) how to correctly set -up the classpath to compile and execute the Java program 2) how to enable the HTTP redirects in the Java program. Thanks in advance! Dimitar _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From wmartinez at AVANTICATEC.NET Wed Mar 12 10:32:54 2008 From: wmartinez at AVANTICATEC.NET (=?US-ASCII?Q?William_Martinez_Pomares?=) Date: Wed Mar 12 11:26:30 2008 Subject: [ptt-users] Enable redirect in TestMaker functional tests In-Reply-To: Message-ID: <85A61B0FDDD4834EA295605C349BABAAB05F96@dc1avantica.AVANTICA.AVANTICATEC.NET> Hello, Dimitri. First I'm sorry things are not working as you expected. No, the other postings you mention got later to my inbox. But please let me try to explain again what is happening. 1. The redirect is working. The message is a warning that has not been silenced but is harmless. Good thing you turn the message off, thanks to Olivier for that! That was also a problem posted in SpikeSource last year. http://developer.spikesource.com/forums/viewtopic.php?t=773 2. TM is a tool to execute tests as units. It does not change the tests in any way. TG4W is a tool create by SpikeSource to record and replay your interactions in the browser. It does this using javaScript. They also provide a java library called htmlunit-interpreter (a separate download) to allow the user to replay the scripts without a browser. To do this, they use HTMLUnit, another open source developed by Gargoyle Software. They use HTTPUnit in turn. TM embeds the TG4W and the htmlunit-interpreter in TM classpath, so you can call the script as a standalone test. In the post above,Vinay from SpikeSource says this: "I think the user was using the original version of HTMLUnit that was shipped with TestMaker when the thread started. It should be fixed with the newer versions with Spike's htmlunit-interpreter" 3. So, if you want to run your recorded test in the browser, you use TG4W in the browsers (javascript). If you want to run it standalone, you should use htmlunit-interpreter to generate a java (it will generate and compile and sets you up to test the script with an ant file). If you want to use that script as a functional test, or a load test, or a monitor, you use TM. It will call the htmlunit-interpreter generator for you, or it will call the htmlunit-interpreter interpreting functions for you to interpret the script. TM does not interpret the scripts by itself nor changes in anyway the settings. So, all your steps generating the java from TM are the long path. To generate a standalone it is better to use the htmlunit-interpreter alone. That is why I would suggest to test on that first to see if htmlunit-interpreter (current version from TG4W) supports what you are doing. 5. The error you see in TM that says: The test failed and the following error was generated: java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Is because TM is not finding the method/class you request in the run. Probably there is an error in the testscenario. If you send it we can take a look at it. 6. The error: java.io.FileNotFoundException: null/pttfrozen1_ProfLogin_loop2.tg4w_rec.html is also a problem from the htmlunit-interpreter, since it tries to generate the results of the test in an HTML (TM does not need that). This error can be discarded, and will be disabled in future versions of TM so it does not get logged. 7. The error: INFO: changing url to page: http://${dt_servers.wp_server}:${dt_servers.wp_port}/edugen/secure/index .uni ------------- ERROR ---------------- com.spike.tg4w.htmlunit.InterpreterException: error while fetching url: http://${dt_servers.wp_server}:${dt_servers.wp_port}/edugen/secure/index .uni Seems to be a problem with htmlunit-interpreter that is not replacing the variables with the dataset correctly. I posted a question to SpikeSource forums to see if the dataset is supported in the htmlunit-interpreter yet. http://developer.spikesource.com/forums/viewtopic.php?t=823 Vinay deom SpikeSource answered inmediately and is asking me for a code to look at: "Hello, Do you have a sample I could work on? thanks," So, if you can handle me the code, or even enter the forum and post it there, Vinay may help you. Please let me know to answer him. Finally, I'm sorry your expectatives were not accomplished. TM is a tool that allows you to plug almost any test you do, in any language supported by the JSR223 spec (I'm not sure if Perl is in the list yet). It also allows to plug tests created in SOAPUI, or in TG4W. But it is not a tool to CREATE the TG4W test, it will just give you the tools to replay them. If there is something the tool at hand is not able to do, TM will not able to deliver it. In your case, you need a test using TG4W to run standalone (not in a browser, so TM can execute it) and that uses datasets feature. If htmlunit-interpreter does not support that, then TM will not support it either. Still, TM has something called DPLs, that are just like datasets in TG4W, and it supports you to plug those to TG4W scripts. Anyway, all this is great feedback and we thank you. I will wait to see what the reponse is from you to SpikeSource, and also we will look at the htmlunit-interpreter using datasets issue on our own. Thanks. William Martinez. -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Wednesday, March 12, 2008 8:53 AM To: TestMaker users list Subject: RE: [ptt-users] Enable redirect in TestMaker functional tests Hi William, Sorry if my response was confusing. I think I understood what that message said. The fact is that I cannot run tg4w script directly from TestMaker if HTTP redirects are present. The redirect warning messages submitted in my first posting were from TestMaker trying to execute my tg4w script. You probably have seen my subsequent emails on this list. I tried to run the generated Java program directly from the command line and from TestMaker.. Both attempts were unsuccessful. I will need to get more familiar with the Java libraries before I can continue in this direction. Today I tried different approach. I used the Proxy recorder to generate a Jython script for my test. The result was very disappointing. The generated script blindly submits the Java session id to the server which naturally is expired and the ends up again on the log-in page. The script makes no effort even to verify whether it lads the correct page and continues to submit the request one after the other hitting the logging page over and over. I was hoping Test Maker will shorten my time to create and deploy a functional test script with no or minimal code modifications of the generated code. Now I think it is just easier and probably much faster for me to implement the whole test script from scratch using Perl modules that provide similar functionality but are much easier to maintain and run. Probably I could do the same thing with Jython but I don't see the point of using an obscure scripting language, which none of the admins here, would be willing to learn to maintain the testing scripts. Thanks, Dimitar Georgievski William Martinez Pomares Sent by: users-bounces@lists.pushtotest.com 03/12/2008 10:01 AM Please respond to TestMaker users list To "TestMaker users list" cc Subject RE: [ptt-users] Enable redirect in TestMaker functional tests Hi Dimitar. No, that is not what the message from HTMLUnit says. The guy from HTMLUnit uses HTTPUnit to perform the HTTP work. But for some reason, he disables HTTPUnit redirection and handles redirection manually in HTMLUnit, one layer above. The problem he faces is that HTTPUnit throws that warning and he does not know how to avoid it. The redirection is done in HTMLUnit, but HTTPUnit throws the warning since it does not know about it. So, there is no problem with redirecting, just an annoying message from an underlying module. Thus, your don't need to change Java Code. Actually, you can run the TG4W script using langtype ="tg4w" without needing to geenrate java nor jython code. Hope this clarifies. Regards, William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 8:17 PM To: TestMaker users list Subject: RE: [ptt-users] Enable redirect in TestMaker functional tests Hi William, If I understood correctly I will need to modify the generated Java code to enable the HTTP redirect and then create another test scenario with TestMaker to run the Java code. How do I enable the HTTP redirect in the Java code? I am still researching the documentation and not sure how to enable it. Too bad HTMLUnit is not supporting redirects. It makes simple tests difficult, Thanks, Dimitar Georgievski William Martinez Pomares Sent by: users-bounces@lists.pushtotest.com 03/11/2008 06:26 PM Please respond to TestMaker users list To "TestMaker users list" cc Subject RE: [ptt-users] Enable redirect in TestMaker functional tests Hi Dimitar. This is interesting. TG4W is a tool to record the steps of your interactions. When replayed in the browser, the tool is using the actual browser actions to repeat the steps. When used outside the browsers, TG4W uses the HTMLUnit product to replay the steps. HTMLUnit is a testing product that executes all the common browser actions without a IU. Internally, it uses another tool called httpclient from apache commons. So, when used in TM, it actually calls the HTMLUnit to perform all the recorded steps smulating a browser. Using a Jython or Java generated from the TG4W script will allow you to see all the steps and customize the calls to HTMLUnit. That error you see there, it seems, is a message in the HTMLUnit module but not an error. See what it is said about that in the HTMLUnit site: " I get error messages about redirection being disabled but I've turned it on. 26.02.2003 16:07:05 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled It's an annoyance that I haven't figured out how to fix yet. For a variety of reasons, I handle the redirection logic inside HtmlUnit rather than letting commons-httpclient handle it for me. It's commons-httpclient that is displaying that message because I have explicitly disabled its redirection support. I'd like to filter out that warning message but haven't figured out a clean way of doing it. A number of people have pointed out that it's easy to disable a message if you know which logger is being used. The problem is that there isn't a way to disable the messages without knowing the logger in use. " http://htmlunit.sourceforge.net/faq.html#RedirectionDiagnosticMessages So, it seems that message is not an error, but a unhandled warning from HTMLUnit guys. Furthermore. If TG4W fails, it will show the error and the trace. So, it seems there is yet no way to eliminate the message, but it also seems the steps are being correctly executed. Now, about the generation error: Could you please tell me what was the error when generating? Was it generating or running the generated asset? If you generated Jython, it will automatically work without any other setup (Jython is interpreted). If you generated Java, you will need to compile the java and pack it into a jar. In the TestScenario you will need to use the tag to indicate where the java jar is to be found. You can follow the "counterDPLExample". If you need more help please let me know. William Martinez -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com]On Behalf Of DGeorgie@wiley.com Sent: Tuesday, March 11, 2008 1:00 PM To: users@lists.pushtotest.com Subject: [ptt-users] Enable redirect in TestMaker functional tests I have problem with a functional test. When the script runs it generates these errors in the TestNode output. Executing time 0 TestRunListeners TestIndex Test #1/1 : ./localhost/ProfLogin_loop2.tg4w - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled The functional test was created based on a script generated by TestGen4Web 0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. The TestGen4Web script executes correctly in FireFox browser. I have found in TG4W forums other people with the same problem but no solution for the problem. I couldn't find any TestMaker setting that could affect the Redirect behavior which is really strange because I am sure most of modern Web applications are using redirects extensively. Without a support for it any testing tool would be useless. I also converted the TG4W script to a Java program hoping I would be able to tweak the Java code and enable the HTTP redirects. BTW the Jython translation didn't work. The generated code has a class which executes the test. InterpreterContext context = new InterpreterContext(this.config); I am still trying to find a documentation for this class. I need help with two things here: 1) how to correctly set -up the classpath to compile and execute the Java program 2) how to enable the HTTP redirects in the Java program. Thanks in advance! Dimitar _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From caroua at galileo-performance.fr Thu Mar 13 09:15:47 2008 From: caroua at galileo-performance.fr (Chamseddine Aroua) Date: Thu Mar 13 10:09:21 2008 Subject: [ptt-users] Questions about pushtotest Message-ID: <11153637.52151205428547774.JavaMail.root@ns300237.ovh.net> Hi, I am a new user of pushtotest Open source and I have some questions: *Does it send alerts (by email for example) if a test failed ? *Where is the log file (I found a log file in PushToTest_TestMaker\notification\Log but it's always empty) ? Thanks Best regards Chams -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20080313/84a16a4b/attachment.htm From sbond at civica.co.uk Thu Mar 13 10:18:01 2008 From: sbond at civica.co.uk (Simon Bond) Date: Thu Mar 13 11:09:50 2008 Subject: [ptt-users] Creating load test using Recorder Message-ID: I have generated a script using the Recorder test agent and would like to use it to perform scalability and performance testing. I created a testscenario and added a test to usecase section to point to the Recorder script. ' ' When I run this scenario, I get the following message in the 'Console Output' ' - Validating test - The test is valid. - Test Resources - XML Scenario: C:\Program Files\PushToTest_TestMaker\AuthorityWeb\Load pay invoice.xml - Loading Scenario - The node localhost is valid The node localhost has loaded the scenario - Starting Monitors - The monitor on the node localhost is not respoding - Monitoring of Host disabled - - Making Transactions - The node localhost didn't start the usecase - Recording Transaction ' I've changed the port the testNode is working from which might be why 'The monitor on the node localhost is not respoding' I would be glad of any help in getting this test to work. Regards, Simon Bond Solutions Architect Civica UK Ltd Tel: 020 884 43581 e-mail: sbond@civica.co.uk Website: www.civica.co.uk CIVICA - providing consultancy, software and managed services ------------------------------------------------------------------------------------------- Please remember to recycle wherever possible.? Reduce, reuse, recycle, think do you need to print this e-mail? ------------------------------------------------------------------------------------------- This e-mail and any attachment(s), is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the addressee, dissemination, copying or use of this e-mail or any of its content is prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail, any attachment(s) and any copies. All liability for viruses is excluded to the fullest extent permitted by law. It is your responsibility to scan or otherwise check this email and any attachment(s). Unless otherwise stated (i) views expressed in this message are those of the individual sender (ii) no contract may be construed by this e-mail. Emails may be monitored and you are taken to consent to this monitoring. Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 01628868 Both companies are registered in England and Wales and each has its registered office at 2 Burston Road, Putney, London, SW15 6AR. ------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20080313/e75964f1/attachment-0001.htm From fcohen at pushtotest.com Thu Mar 13 17:32:11 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Thu Mar 13 18:25:03 2008 Subject: [ptt-users] Questions about pushtotest In-Reply-To: <4216717.1205428668280.JavaMail.root@m06> References: <4216717.1205428668280.JavaMail.root@m06> Message-ID: <0F4C5DF6-E4C9-42DC-9778-DB15B5366522@pushtotest.com> Hi Chams: > *Does it send alerts (by email for example) if a test failed ? PushToTest TestMaker supports email notification, including test failure messages. Please take a look at the TestMaker_home/ example_agents/notificationsExample example. Also, see the reference documentation at the following URL: http://docs.pushtotest.com/docs/reference.html > > *Where is the log file (I found a log file in PushToTest_TestMaker > \notification\Log but it's always empty) ? Once you run a load test then look in the TestMaker_home/results directory. Hope this helps. -Frank On Mar 13, 2008, at 10:15 AM, Chamseddine Aroua wrote: > Hi, > > I am a new user of pushtotest Open source and I have some questions: > *Does it send alerts (by email for example) if a test failed ? > *Where is the log file (I found a log file in PushToTest_TestMaker > \notification\Log but it's always empty) ? > > Thanks > > Best regards > Chams > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company From sbond at civica.co.uk Fri Mar 14 07:19:50 2008 From: sbond at civica.co.uk (Simon Bond) Date: Fri Mar 14 08:11:55 2008 Subject: [ptt-users] RE: Creating load test using Recorder In-Reply-To: <20080313190942.E079843E0C1@mail.pushtotest.com> References: <20080313190942.E079843E0C1@mail.pushtotest.com> Message-ID: I've added a resource section ' ' And changed the test section to ' ' When I run this testScenario I get the following In 'Console Output' it says ' - Making Transactions - The node localhost didn't start the usecase - Recording Transaction' In 'Local TestNode Output' it says ' Caught a throwable java.lang.VerifyError: (class: com/pushtotest/testmaker/XSTest/xml/TestScenario/ScriptRunner, method: runSOAPUI signature: (Lcom/eviware/soapui/impl/wsdl/testcase/WsdlTestCase;Lcom/pushtotest/tes tmaker/XSTest/xml/TestScenario/SoapuiTestRunListener;)V) Incompatible argument to function' Any idea what else I should change? Thanks, Simon ------------------------------------------------------------------------------------------- Please remember to recycle wherever possible.? Reduce, reuse, recycle, think do you need to print this e-mail? ------------------------------------------------------------------------------------------- This e-mail and any attachment(s), is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the addressee, dissemination, copying or use of this e-mail or any of its content is prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail, any attachment(s) and any copies. All liability for viruses is excluded to the fullest extent permitted by law. It is your responsibility to scan or otherwise check this email and any attachment(s). Unless otherwise stated (i) views expressed in this message are those of the individual sender (ii) no contract may be construed by this e-mail. Emails may be monitored and you are taken to consent to this monitoring. Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 01628868 Both companies are registered in England and Wales and each has its registered office at 2 Burston Road, Putney, London, SW15 6AR. ------------------------------------------------------------------------------------------- From tmccarthy at tangiblesoftware.com Fri Mar 14 08:13:39 2008 From: tmccarthy at tangiblesoftware.com (Theo McCarthy) Date: Fri Mar 14 09:06:51 2008 Subject: [ptt-users] functional tests stuck in infinite loops Message-ID: <2F3DC4D41FA5994686AFFC36F1D661BEE542F2@wolverine.tangiblesoftware.com> I'm running PushToTest on WindowsXP SP2, and ever since I downloaded v5.1 every functional test I run seems to get stuck in some kind of infinite loop. This is true both for new scenarios I've written since the update and on scenarios that worked fine before the update. It happens for every functional test, and I can't break the loop by stopping the scenario. Does anybody know what might be causing this or how to fix it? Here's my Console Output: Starting local TestNode at C:\Program Files\PushToTest_TestMaker\TestNetwork\TestNode\startup.bat Starting local Monitor 2008-03-14 11:47:34,761 [main] DEBUG com.bitmechanic.maxq.Config - Generator: com.pushtotest.testmaker.gui.NewAgentWizard.maxqhelp.TMCodeGenerator Proxy recorder server started on port: 80902008-03-14 11:47:35,214 [Thread-13] INFO com.bitmechanic.maxq.ProxyServer - Proxy server started on port: 8090 - Validating test - The test is valid. - The functional test is running - - Test Resources - XML Scenario: C:\Documents and Settings\TSI\Desktop\Push files\CCAUCAPanthemGA1Func TestGen4Web File: C:\Documents and Settings\TSI\Desktop\Push files\CCAUCAPanthemGA1.testgen4web - Loading Scenario - The node localhost is valid The node localhost has loaded the scenario TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case - Stoping test - Stoping node: localhost The node has been stopped Test stopped! TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case and my Local TestNode Output: - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Adding file localhost\mylog.xml INFO - New scenario Untitled Functional Test INFO - Node name:localhost Running a functional test Executing time 0 INFO - Trying to stop the monitor INFO - Trying to stop the monitor and my Local TestNode Error: 2008-03-14 11:47:34.421::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-03-14 11:47:35.578::INFO: jetty-6.1.4 2008-03-14 11:47:35.703::INFO: NO JSP Support for /axis, did not find org.apache.jasper.servlet.JspServlet 2008-03-14 11:47:35.249::INFO: Extract jar:file:/C:/Program%20Files/PushToTest_TestMaker/TestNetwork/TestNode/webapps/responder.war!/ to C:\DOCUME~1\TSI\LOCALS~1\Temp\Jetty_0_0_0_0_8080_responder.war__responder__-4z4j09\webapp 2008-03-14 11:47:35.359::INFO: NO JSP Support for /responder, did not find org.apache.jasper.servlet.JspServlet 2008-03-14 11:47:36.890::INFO: NO JSP Support for /TestNetwork, did not find org.apache.jasper.servlet.JspServlet 2008-03-14 11:47:36.137::INFO: NO JSP Support for /WEB-INF, did not find org.apache.jasper.servlet.JspServlet 2008-03-14 11:47:36.153::INFO: Started SelectChannelConnector@0.0.0.0:8080 Exception in thread "Thread-20" java.lang.VerifyError: (class: com/pushtotest/testmaker/XSTest/xml/TestScenario/ScriptRunner, method: runSOAPUI signature: (Lcom/eviware/soapui/impl/wsdl/testcase/WsdlTestCase;Lcom/pushtotest/testmaker/XSTest/xml/TestScenario/SoapuiTestRunListener;)V) Incompatible argument to function at com.pushtotest.testmaker.XSTest.xml.TestScenario.TestusecaseRunner.runOneTime(TestusecaseRunner.java:454) at com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.runFunctionaltest(TestscenarioRunner.java:288) at com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner.access$000(TestscenarioRunner.java:91) at com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner$FunctionalTest.run(TestscenarioRunner.java:272) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20080314/9fa6cfcb/attachment.htm From kmmizzet at yahoo.co.uk Fri Mar 21 07:49:41 2008 From: kmmizzet at yahoo.co.uk (Kevin Izzet) Date: Fri Mar 21 08:44:28 2008 Subject: [ptt-users] PTTMonitor for Solaris Message-ID: <187715.49393.qm@web53107.mail.re2.yahoo.com> Hi, Can anyone tell/point me in the right direction, I have started to look at push to test as a replacement for our current testing software, my problem is that the PTTMonitor doesn't appear to be supported on Solaris Is this correct or am I just being daft. Regards Kevin __________________________________________________________ Sent from Yahoo! Mail. More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html From fcohen at pushtotest.com Fri Mar 21 08:37:47 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Fri Mar 21 09:32:41 2008 Subject: [ptt-users] PTTMonitor for Solaris In-Reply-To: <7963209.1206114881748.JavaMail.root@m06> References: <7963209.1206114881748.JavaMail.root@m06> Message-ID: Hi Kevin: PTTMonitor makes native calls to the underlying OS. Unfortunately we do not have one for Solaris. We could have our engineers add this with a few hours of consulting work, or would be glad to have someone in the community contribute a Solaris monitor. Please let me know how this impacts your plans. Thanks. -Frank On Mar 21, 2008, at 11:49 AM, Kevin Izzet wrote: > Hi, > > Can anyone tell/point me in the right direction, I have started to > look at push to test as a replacement for our current testing > software, my problem is that the PTTMonitor doesn't appear to be > supported on Solaris > > Is this correct or am I just being daft. > > Regards > > Kevin > > > __________________________________________________________ > Sent from Yahoo! Mail. > More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company From kmmizzet at yahoo.co.uk Fri Mar 21 09:12:07 2008 From: kmmizzet at yahoo.co.uk (Kevin Izzet) Date: Fri Mar 21 14:31:57 2008 Subject: [ptt-users] PTTMonitor for Solaris In-Reply-To: References: <7963209.1206114881748.JavaMail.root@m06> Message-ID: <47E3EC67.6040008@yahoo.co.uk> Hi Frank, Thanks for your quick reply, we are currently using grinder to do our performance/load testing it's a great tool but has some limitations, mainly mt colleagues arnt into scripting and prefer to have point and click apps, also my Manager prefers to see graphs and is always looking for comparison's. I found a link to this app yesterday and decided to give it a whirl with a view to replacing grinder for our main perf testing, a number of features stand out one of which being the PTTMonitor. We are predominantly a Sun/Solaris site although I recently replaced our load test box's with linux. It would be preferable to have a Solaris based monitor to tie the information into one tool so that I can demonstrate the benefits to my managers. Just being cheeky now but does the app give a break down of performance for each step (GET/POST) and can the comparison tool show the output ? Regards Kevin PS. Favourite features (So Far) , Firefox Plugin record/replay, Simplicity of generating Load tests, Simplicity of installation. Frank Cohen wrote: > Hi Kevin: > > PTTMonitor makes native calls to the underlying OS. Unfortunately we > do not have one for Solaris. We could have our engineers add this with > a few hours of consulting work, or would be glad to have someone in > the community contribute a Solaris monitor. > > Please let me know how this impacts your plans. > > Thanks. > > -Frank > > > > On Mar 21, 2008, at 11:49 AM, Kevin Izzet wrote: >> Hi, >> >> Can anyone tell/point me in the right direction, I have started to >> look at push to test as a replacement for our current testing >> software, my problem is that the PTTMonitor doesn't appear to be >> supported on Solaris >> >> Is this correct or am I just being daft. >> >> Regards >> >> Kevin >> >> >> __________________________________________________________ >> Sent from Yahoo! Mail. >> More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html >> _______________________________________________ >> Users mailing list >> Users@lists.pushtotest.com >> http://lists.pushtotest.com/mailman/listinfo/users >> > > > > -- > Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 > PushToTest, the open-source test automation company > > > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > ___________________________________________________________ Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html From fcohen at pushtotest.com Fri Mar 21 18:13:02 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Fri Mar 21 19:49:27 2008 Subject: [ptt-users] PTTMonitor for Solaris In-Reply-To: <24387997.1206135584897.JavaMail.root@m06> References: <7963209.1206114881748.JavaMail.root@m06> <24387997.1206135584897.JavaMail.root@m06> Message-ID: <7EA8E25D-5FEC-4B0E-B6D5-C3068B038C97@pushtotest.com> Hi Kevin: Thanks for the info. Of course, I'm curious how TestMaker compares to The Grinder. So thanks for the thoughts on why you are considering a switch. The record/playback is currently supported using TestGen4Web from SpikeSource and Selenium. Check out the reporting capability here: http://downloads.pushtotest.com/tm5/Results_UI_Design.pdf -Frank On Mar 21, 2008, at 12:12 PM, Kevin Izzet wrote: > Hi Frank, > > Thanks for your quick reply, we are currently using grinder to do > our performance/load testing > it's a great tool but has some limitations, mainly mt colleagues > arnt into scripting and prefer to > have point and click apps, also my Manager prefers to see graphs > and is always looking for > comparison's. > > I found a link to this app yesterday and decided to give it a whirl > with a view to replacing grinder > for our main perf testing, a number of features stand out one of > which being the PTTMonitor. > > We are predominantly a Sun/Solaris site although I recently > replaced our load test box's with linux. > > It would be preferable to have a Solaris based monitor to tie the > information into one tool so that > I can demonstrate the benefits to my managers. > > Just being cheeky now but does the app give a break down of > performance for each step (GET/POST) > and can the comparison tool show the output ? > > Regards > > Kevin > > PS. Favourite features (So Far) , Firefox Plugin record/replay, > Simplicity of generating Load tests, > Simplicity of installation. > > > Frank Cohen wrote: >> Hi Kevin: >> >> PTTMonitor makes native calls to the underlying OS. Unfortunately >> we do not have one for Solaris. We could have our engineers add >> this with a few hours of consulting work, or would be glad to have >> someone in the community contribute a Solaris monitor. >> >> Please let me know how this impacts your plans. >> >> Thanks. >> >> -Frank >> >> >> >> On Mar 21, 2008, at 11:49 AM, Kevin Izzet wrote: >>> Hi, >>> >>> Can anyone tell/point me in the right direction, I have started >>> to look at push to test as a replacement for our current testing >>> software, my problem is that the PTTMonitor doesn't appear to be >>> supported on Solaris >>> >>> Is this correct or am I just being daft. >>> >>> Regards >>> >>> Kevin >>> >>> >>> __________________________________________________________ >>> Sent from Yahoo! Mail. >>> More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html >>> _______________________________________________ >>> Users mailing list >>> Users@lists.pushtotest.com >>> http://lists.pushtotest.com/mailman/listinfo/users >>> >> >> >> >> -- >> Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 >> PushToTest, the open-source test automation company >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.pushtotest.com >> http://lists.pushtotest.com/mailman/listinfo/users >> > > > > ___________________________________________________________ Inbox > full of spam? Get leading spam protection and 1GB storage with All > New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company From kmmizzet at yahoo.co.uk Tue Mar 25 05:20:33 2008 From: kmmizzet at yahoo.co.uk (Kevin Izzet) Date: Tue Mar 25 06:16:09 2008 Subject: [ptt-users] PTTMonitor for Solaris Message-ID: <527712.85319.qm@web53107.mail.re2.yahoo.com> Hi Frank, I have downloaded and compiled the pre-alpha version (5.2) from cvs and installed Testmaker on my local system and the new Monitor/TestNode on the remote system, I have also added the step=true option to the test_load.xml. Unfortunately when I run an existing test I get the following output in the "Console Output" have I done something wrong? I realise that this is an alpha build and appreciate that it's not yet supported. Regards Kevin - Validating test - The test is valid. - Test Resources - XML Scenario: /home/administrator/PushToTest_TestMaker/pprod_qual_accaweb_load.xml TestGen4Web File: ////home/administrator/PushToTest_TestMaker/pprod_qual_accaweb.testgen4web - Loading Scenario - The node acca-4 is valid The node acca-4 has loaded the scenario - Starting Monitors - Monitor for acca-4 started. - Monitoring of Host disabled - - Making Transactions - - Restarting monitors - - Recording Transaction - TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case TestNode acca-4 snapshot: Operating first test use case Test Summary TestNode acca-4 final results: Tests completed: 0. Success: 0. Failures: 0. - Getting Result Files - Getting ./Results/Tue_Mar_25_12-55-55_GMT_2008/docs/acca-4-uc0crl0sz0.xml from acca-4 - Fetching Monitor Information - java.lang.IllegalArgumentException: Null 'chart' argument. at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:172) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:329) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:300) at com.pushtotest.testmaker.controller.guiTestScenarioPanel.saveGraphs(guiTestScenarioPanel.java:788) at com.pushtotest.testmaker.XSTest.client.ControlRunner.runScenario(ControlRunner.java:544) at com.pushtotest.testmaker.XSTest.client.ControlRunner.run(ControlRunner.java:458) Recorder: java.lang.ClassCastException: com.pushtotest.testmaker.XSTest.tally.TabPanel cannot be cast to org.jfree.chart.ChartPanel java.lang.ClassCastException: com.pushtotest.testmaker.XSTest.tally.TabPanel cannot be cast to org.jfree.chart.ChartPanel at com.pushtotest.testmaker.controller.guiTestScenarioPanel.saveGraphs(guiTestScenarioPanel.java:898) at com.pushtotest.testmaker.XSTest.client.ControlRunner.runScenario(ControlRunner.java:544) at com.pushtotest.testmaker.XSTest.client.ControlRunner.run(ControlRunner.java:458) __________________________________________________________ Sent from Yahoo! Mail. More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html From kmmizzet at yahoo.co.uk Thu Mar 27 04:42:03 2008 From: kmmizzet at yahoo.co.uk (Kevin Izzet) Date: Thu Mar 27 05:37:53 2008 Subject: [ptt-users] Newbie Help Message-ID: <783261.52214.qm@web53103.mail.re2.yahoo.com> Hi All, I'm having problems getting a simple login test to work (or get debug info). I have started small by creating, using testgen4web, a simple test which only goes to a Portal login page and does nothing else, I have then created a functional test, which works fine, and then a load test, which also works fine. I then took things one stage further and created a test which logged into the Portal, I tested the scenario works fine using the replay option of testgen4web, but neither the functional test or load test return any results. Tested using TestMaker 5.2 pre-alpha from both Linux and Windows boxes The console output is as follow :- - Validating test - The test is valid. - Test Resources - XML Scenario: C:\Program Files\PushToTest_TestMaker\newloadtest.xml TestGen4Web File: pprod_qual_newapp.testgen4web - Loading Scenario - The node localhost is valid The node localhost has loaded the scenario - Starting Monitors - Monitor for localhost started. - Monitoring of Host disabled - - Making Transactions - - Restarting monitors - - Recording Transaction - TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case Test Summary TestNode localhost final results: Tests completed: 0. Success: 0. Failures: 0. - Getting Result Files - Getting ./Results/Thu_Mar_27_12-25-48_GMT_2008/docs/localhost-uc0crl0sz0.xml from localhost - Fetching Monitor Information - java.lang.IllegalArgumentException: Null 'chart' argument. at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:172) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:329) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:300) at com.pushtotest.testmaker.controller.guiTestScenarioPanel.saveGraphs(guiTestScenarioPanel.java:788) at com.pushtotest.testmaker.XSTest.client.ControlRunner.runScenario(ControlRunner.java:541) at com.pushtotest.testmaker.XSTest.client.ControlRunner.run(ControlRunner.java:455) Recorder: java.lang.ClassCastException: com.pushtotest.testmaker.XSTest.tally.TabPanel cannot be cast to org.jfree.chart.ChartPanel java.lang.ClassCastException: com.pushtotest.testmaker.XSTest.tally.TabPanel cannot be cast to org.jfree.chart.ChartPanel at com.pushtotest.testmaker.controller.guiTestScenarioPanel.saveGraphs(guiTestScenarioPanel.java:898) at com.pushtotest.testmaker.XSTest.client.ControlRunner.runScenario(ControlRunner.java:541) at com.pushtotest.testmaker.XSTest.client.ControlRunner.run(ControlRunner.java:455) I can get the java error to disappear by setting summary flag to false Regards Kevin ___________________________________________________________ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/ From fcohen at pushtotest.com Thu Mar 27 09:25:33 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Thu Mar 27 11:12:06 2008 Subject: [ptt-users] Newbie Help In-Reply-To: <23383006.1206621744844.JavaMail.root@m06> References: <23383006.1206621744844.JavaMail.root@m06> Message-ID: Hi Kevin: It seems there is a problem with the testnode that is not initiating or ending the the TestGen4Web test. I see the message: "TestNode localhost snapshot: Operating first test use case" several times and "TestNode localhost final results: Tests completed: 0. Success: 0 Failures: 0." at the end. This could be a problem with TestGen4Web, but the first run of the test appears to have worked successfully. Would you be willing to send me the TestScenario file? Also, did you convert the TestGen4Web recording into Jython? If so, we would like to look at that too. One other thing, please look at the TestNode output and error tabs in the Output panel. There may be execution problem log entries there. The chart error you see in the log is because the test failed and there are no results. This is a bug that will be solved shortly. (Keep in mind that you are running pre-alpha code.) I hope this helps. -Frank On Mar 27, 2008, at 5:42 AM, Kevin Izzet wrote: > Hi All, > > I'm having problems getting a simple login test to work (or get > debug info). > I have started small by creating, using testgen4web, a simple test > which only goes to a Portal login page and does nothing else, I > have then created a functional test, which works fine, and then a > load test, which also works fine. > I then took things one stage further and created a test which > logged into the Portal, I tested the scenario works fine using the > replay option of testgen4web, but neither the functional test or > load test return any results. > > Tested using TestMaker 5.2 pre-alpha from both Linux and Windows boxes > > The console output is as follow :- > > - Validating test - > The test is valid. > - Test Resources - > XML Scenario: C:\Program Files\PushToTest_TestMaker\newloadtest.xml > TestGen4Web File: pprod_qual_newapp.testgen4web > - Loading Scenario - > The node localhost is valid > The node localhost has loaded the scenario > - Starting Monitors - > Monitor for localhost started. > - Monitoring of Host disabled - > - Making Transactions - > - Restarting monitors - > - Recording Transaction - > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > TestNode localhost snapshot: Operating first test use case > Test Summary > TestNode localhost final results: Tests completed: 0. Success: 0. > Failures: 0. > - Getting Result Files - > Getting ./Results/Thu_Mar_27_12-25-48_GMT_2008/docs/localhost- > uc0crl0sz0.xml from localhost > - Fetching Monitor Information - > java.lang.IllegalArgumentException: Null 'chart' argument. > at org.jfree.chart.ChartUtilities.writeChartAsPNG > (ChartUtilities.java:172) > at org.jfree.chart.ChartUtilities.saveChartAsPNG > (ChartUtilities.java:329) > at org.jfree.chart.ChartUtilities.saveChartAsPNG > (ChartUtilities.java:300) > at > com.pushtotest.testmaker.controller.guiTestScenarioPanel.saveGraphs > (guiTestScenarioPanel.java:788) > at com.pushtotest.testmaker.XSTest.client.ControlRunner.runScenario > (ControlRunner.java:541) > at com.pushtotest.testmaker.XSTest.client.ControlRunner.run > (ControlRunner.java:455) > Recorder: java.lang.ClassCastException: > com.pushtotest.testmaker.XSTest.tally.TabPanel cannot be cast to > org.jfree.chart.ChartPanel > java.lang.ClassCastException: > com.pushtotest.testmaker.XSTest.tally.TabPanel cannot be cast to > org.jfree.chart.ChartPanel > at > com.pushtotest.testmaker.controller.guiTestScenarioPanel.saveGraphs > (guiTestScenarioPanel.java:898) > at com.pushtotest.testmaker.XSTest.client.ControlRunner.runScenario > (ControlRunner.java:541) > at com.pushtotest.testmaker.XSTest.client.ControlRunner.run > (ControlRunner.java:455) > > > I can get the java error to disappear by setting summary flag to false > > Regards > > Kevin > > > ___________________________________________________________ > Yahoo! For Good helps you make a difference > > http://uk.promotions.yahoo.com/forgood/ > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > -- Frank Cohen, http://www.PushToTest.com, phone 408 871 0122 PushToTest, the open-source test automation company From kmmizzet at yahoo.co.uk Fri Mar 28 06:25:35 2008 From: kmmizzet at yahoo.co.uk (Kevin Izzet) Date: Fri Mar 28 07:22:00 2008 Subject: [ptt-users] Newbie Help Message-ID: <508378.43180.qm@web53111.mail.re2.yahoo.com> Hi Frank, No problems sending you the file, will obviously have to remove login details, but that should be fine. I haven't tried converting to a jython script, is this recomended and if so what are the advantages of doing so ? I have attached the output from the Local TestNode output/errors I have tried running the same load/testgen4web scripts in both 5.1 and 5.2 and appear to get the same results. Thanks fro you help Regards Kevin TestNode Output Running a use case 0 Message size 1 0 Test #1/1 : .\localhost\pprod_qual_newapp.testgen4web - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 Test is successfull Test #1/1 : .\localhost\pprod_qual_newapp.testgen4web - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 Test is successfull Test #1/1 : .\localhost\pprod_qual_newapp.testgen4web - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Redirect requested but followRedirects is disabled - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 - Added cookie: oracle.uix=0^^GMT-0:00 Test is successfull TestNode Error log4j:WARN No appenders could be found for logger (info0). log4j:WARN Please initialize the log4j system properly. --------- Original E-Mail --------- Hi Kevin: It seems there is a problem with the testnode that is not initiating or ending the the TestGen4Web test. I see the message: "TestNode localhost snapshot: Operating first test use case" several times and "TestNode localhost final results: Tests completed: 0. Success: 0 Failures: 0." at the end. This could be a problem with TestGen4Web, but the first run of the test appears to have worked successfully. Would you be willing to send me the TestScenario file? Also, did you convert the TestGen4Web recording into Jython? If so, we would like to look at that too. One other thing, please look at the TestNode output and error tabs in the Output panel. There may be execution problem log entries there. The chart error you see in the log is because the test failed and there are no results. This is a bug that will be solved shortly. (Keep in mind that you are running pre-alpha code.) I hope this helps. -Frank __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox http://uk.docs.yahoo.com/nowyoucan.html -------------- next part -------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: newloadtest.xml Type: text/xml Size: 2022 bytes Desc: not available Url : http://cake.pushtotest.com/pipermail/users/attachments/20080328/348a3989/newloadtest-0001.xml From fcohen at pushtotest.com Sun Mar 30 09:59:51 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Sun Mar 30 11:05:38 2008 Subject: [ptt-users] Testing users email list Message-ID: <285697.98818.qm@web45111.mail.sp1.yahoo.com> This is a test. Please ignore. -Frank ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From fcohen at pushtotest.com Sun Mar 30 10:12:23 2008 From: fcohen at pushtotest.com (Frank Cohen) Date: Sun Mar 30 11:05:39 2008 Subject: [ptt-users] test email Message-ID: <601804.61092.qm@web45112.mail.sp1.yahoo.com> this is a test. -Frank ____________________________________________________________________________________ Special deal for Yahoo! users & friends - No Cost. Get a month of Blockbuster Total Access now http://tc.deals.yahoo.com/tc/blockbuster/text3.com