From geoffm at gamesys.co.uk Fri Dec 1 01:59:31 2006 From: geoffm at gamesys.co.uk (Geoff Meakin) Date: Fri Dec 1 02:55:37 2006 Subject: [ptt-users] HTTP params in agentbase script Message-ID: I've worked out your problem your lines should read self.params= and not self=params= the second version will do nothing so your params will be the same as before Didnt spot that the first time round! hope that helps Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com on behalf of Mark.Lutton@thomson.com Sent: Thu 30/11/2006 18:12 To: users@lists.pushtotest.com Subject: FW: [ptt-users] HTTP params in agentbase script Thanks for the help. The results of the test are even stranger. Here is the beginning of the test, interspersed with Tomcat's localhost_access_log output: self.params = [ [ '''test''', '''maker''' ] ] self.get( ''http://localhost:8080/tomcat.gif''', self.params) "GET /tomcat.gif?test=maker HTTP/1.1" self=params = [ [ '''start''', '''true''' ], [ '''foo''', '''bar''' ] ] self.get( '''http://localhost:8080/myApp/quickStartFake.do''', self.params) "GET /myApp/quickStartFakeSession.do?start=true&foo=bar HTTP/1.1" "GET /myApp/images/MyAppFake.gif HTTP/1.1" "GET /myApp/images/app_logo_sm.gif HTTP/1.1" self.params = [ ] self.get( '''http://localhost:8080/myApp''' ) self.get( '''http://localhost:8080/myApp/''' ) "GET /myApp/?start=true&foo=bar HTTP/1.1" self.get( '''http://localhost:8080/myApp/index2.jsp''' ) "GET /myApp/index2.jsp?start=true&foo=bar HTTP/1.1" self.get( '''http://localhost:8080/myApp/appFramer.do''' ) "GET /myApp/appFramer.do?start=true&foo=bar HTTP/1.1" self.params = [ [ '''userName''', '''manager''' ], [ '''password''', '''manager''' ], [ '''submit''', '''Logon''' ] ] self.post( '''http://localhost:8080/myApp/logon.do''', self.params) "POST /myApp/logon.do?start=true&foo=bar HTTP/1.1" I have to assume the Tomcat log shows the request exactly as it is received, so the problem is on the client side. If I change the quickStart to a POST, I get this: self.params = [ [ '''test''', '''maker''' ] ] self.get( ''http://localhost:8080/tomcat.gif''', self.params) "GET /tomcat.gif?test=maker HTTP/1.1" self=params = [ [ '''start''', '''true''' ], [ '''foo''', '''bar''' ] ] self.post( '''http://localhost:8080/myApp/quickStartFake.do''', self.params) "POST /myApp/quickStartFakeSession.do?test=maker HTTP/1.1" Why are the parameters put into the query line for a GET but not for a POST? GET and POST both allow for a query line and for parameters. (GET and POST should work identically. The only difference between them is a semantic detail. GET requests are supposed to have no side effects; POST requests are assumed to have side effects. On Windows I have a shortcut to http://localhost:8080/myApp/quickStartFake.do?start=true which does a GET (I don't think a shortcut can do a POST) so this is a rare case of a GET with a side effect.) I can solve my problem for this script by using a POST, but I would like to understand what is going on here. Otherwise, the queries I construct in the script are not going to match the queries seen in production. Mark Lutton Business Intelligence Services, a Thomson Business ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin Sent: Thu 11/30/2006 5:15 AM To: TestMaker users list Subject: RE: [ptt-users] HTTP params in agentbase script I suggest you don't use that format, but the first format self.params = [ [ '''start''', '''true''' ] ] self.get('''http://localhost:8080/myApp/quickStartFake.do''') Hopefully this will help? Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Mark.Lutton@thomson.com Sent: 30 November 2006 01:20 To: users@lists.pushtotest.com Subject: [ptt-users] HTTP params in agentbase script Hello! I'm just beginning to use TestMaker and I have a problem that I don't understand. (TestMaker 4.4; Tomcat 5.0.28 on the server side.) I used the Recorder to create a script. This has a number of self.get() statements in it. Here is part of the script: self.params = [ [ '''userName''', '''manager''' ], ['''password''', '''manager''' ], [ '''submit''', '''Logon''' ] ] self.post( '''http://localhost:8080/myApp/logon.do''', self.params) On the server side I have the application print the parameters from the HTTP request: Logon: parameter: password=manager Logon: parameter: submit=Logon Logon: parameter: userName=manager My application has a "magic URL" which, if called as the very first request on start up, sets it to a local test mode. So I added the following to the script before any other self.get or self.post: self.get('''http://localhost:8080/myApp/quickStartFake.do?start=true''') This is followed by several other get's and then the post as seen above. But now here's what happens in the logon request: Logon: parameter: password=manager Logon: parameter: submit=Logon Logon: parameter: userName=manager Logon: parameter: start=true It should still have only the three parameters password, submit and userName. I don't think the problem is on the server side. The parameter is not cached, and it's not being put into the request by the application. I can't force this to happen from the browser. Here is what I see in the Tomcat log. In the first case (no quickStartFake): "POST /myApp/logon.do HTTP/1.1" "GET /myApp/managerConsole.do HTTP/1.1" etc. In the second case: "GET /myApp/quickStartFake.do?start=true HTTP/1.1" "POST /myApp/logon.do?start=true HTTP/1.1" "GET /myApp/managerConsole.do?start=true HTTP/1.1" etc. It appears that the query parameter is extracted from the first get and appended to each succeeding get or post. I can't see how this is happening in agentbase.py, or any way to fix this. Can anyone explain what is happening? Thanks. Mark Lutton Business Intelligence Services, a Thomson Business _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20061201/7de79a52/attachment-0001.htm From geoffm at gamesys.co.uk Fri Dec 1 02:58:45 2006 From: geoffm at gamesys.co.uk (Geoff Meakin) Date: Fri Dec 1 03:57:04 2006 Subject: [ptt-users] omission in post parameters Message-ID: Hi, I have just read the w3c recs and spec, and note that basically you can POST what you like as part of a POST request, but what is legal depends on the Content-Type header declaration. Therefore for a application/x-www-form-urlencoded they do indeed have to be key/value pairs, encoded properly. Therefore in this respect my application under test breaks the w3c recs (nice) However, we are now modifying the Content-Type to text/xml, which allows you to POST just xml. How would I do this in testmaker please? I.e. come up with something that looks like this: POST /url HTTP/1.1 Host: foo.bar.com Content-Type: text/xml ..... more headers ..... Thanks -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com on behalf of Mark.Lutton@thomson.com Sent: Thu 30/11/2006 18:55 To: users@lists.pushtotest.com Subject: FW: [ptt-users] omission in post parameters I don't think it is meaningful to have a single value without a key. Here is an example of a POST request, which I got from http://www.jmarshall.com/easy/html/ : POST /path/script.cgi HTTP/1.0 From: frog@jmarshall.com User-Agent: HTTPTool/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 32 home=Cosby&favorite+flavor=flies You could also do this in the URL by putting the parameters into the query: http://hostname.com/path/script.cgi?home=Cosby&favorite+flavor=flies But I don't know what the following means: http://hostname.com/path/script.cgi?Cosby Likewise: POST /path/script.cgi HTTP/1.0 From: frog@jmarshall.com User-Agent: HTTPTool/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 5 Cosby In both cases Cosby looks like the key, not the value. On the server side, what would ServletRequest.getParameterMap() return? A parameter value can be an array of strings; a single string is equivalent to an array containing one string. Is this what you are thinking of? I don't know the syntax for an array of values but I guess it would be like this: self.params=[ [ '''key''', [ '''value1''', '''value2''', '''value3''' ] ] ] So the following two would be equivalent: self.params= [ [ '''key''', [ '''value''' ] ] ] self.params= [ [ '''key''', '''value''' ] ] Mark Lutton Business Intelligence Services, a Thomson Business ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin Sent: Thu 11/30/2006 12:59 PM To: TestMaker users list Subject: [ptt-users] omission in post parameters Hi all, Does anyone know how to post a singleton parameter Normally: self.params= [ [ '''key''', '''value''' ] ] self.post(url) However it should be possibly to also post: self.params= [ [ '''value''' ] ] self.post(url) but doing this leads to an index out of bounds. I've checked HTTPBody.java and it DOES NOT have a method: addParameter(String value) If anyone can help with how to do this, it would be gratefully appreciated! Or indeed any other thoughts... am a bit stuck out here! Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Kyle Bell Sent: 30 November 2006 15:40 To: TestMaker users list Subject: Re: [ptt-users] TestMaker 5 completion specification Frank, I know you were looking for some example code associated with SIP enabled instant messaging clients. Follow the link below and click on the Sip Communicator. This is a NIST sponsored IM and telephony client. http://snad.ncsl.nist.gov/proj/iptel/ Regards, -Kyle On Wed, 2006-11-29 at 08:03 -0800, Frank Cohen wrote: > That explains it. :-( Oh well. Thanks for finding this. I'll see what > I can do when I write the TM 5 build scripts. Maybe I'll write my own > zip handler. -Frank > > > On Nov 29, 2006, at 7:42 AM, Kyle Bell wrote: > > > Frank, > > > > I found this tidbit from the ant user manual -> core tasks -> zip: > > > > Starting with Ant 1.5.2, can store Unix permissions inside the > > archive (see description of the filemode and dirmode attributes for > > ). Unfortunately there is no portable way to store these > > permissions. Ant uses the algorithm used by Info-Zip's > > implementation of > > the zip and unzip commands - these are the default versions of zip and > > unzip for many Unix and Unix-like systems. > > > > > > Please note that the zip format allows multiple files of the same > > fully- > > qualified name to exist within a single archive. This has been > > documented as causing various problems for unsuspecting users. If you > > wish to avoid this behavior you must set the duplicate attribute to a > > value other than its default, "add". > > > > This likely explains your issue. The options available for the > > duplicate attribute are as follows: > > > > duplicate -> behavior when a duplicate file is found. Valid values are > > "add", "preserve", and "fail". The default value is "add". > > > > In your zip task you may try specifying "preserve" as the value rather > > than the default of "add" and see where that takes you... > > > > Hope this helps... > > > > -Kyle > > > > > > > > On Mon, 2006-11-27 at 10:52 -0800, Frank Cohen wrote: > >> Hi Kyle: Thanks for the feedback. See below. -Frank > >> On Nov 27, 2006, at 9:41 AM, Kyle Bell wrote: > >> > >>> Frank, > >>> > >>> Nice feature list. I especially appreciate the first new feature > >>> idea > >>> by Bongos Amigos. I've not spent any time finding a good use for > >>> those > >>> generated XML files and this would make them immediately useful... > >> > >> Attached is an example TestScenario XML file. I'd love feedback on > >> it. > >> > >>> Another enhancement or bug as it may be seen that I'd like to see > >>> addressed is the ability to kill a running TestCase from the > >>> TestMaker > >>> IDE which is not being controlled by XSTest. If a test case is > >>> running > >>> within the browser (perhaps it was written to run in an infinite > >>> loop > >>> correctly or by accident), I've not found a way to kill this running > >>> process as the "stop the agent" button appears not to be effective. > >> > >> Interesting. When you click the stop button TestMaker kills the > >> thread running the script. That's not a very nice way to do it, but > >> it's something necessary. I suppose another way would be to have a > >> signal to the running test case to stop. I'll give this some thought. > >> Thanks for making me aware of the problem. > >> > >> > >> > >>> Also, could I get you to make a small change to your ANT script > >>> which > >>> packages your distribution? I had previously suggested (and you > >>> implemented) a change to make the permissions 755 on TestMaker.sh > >>> when > >>> you perform your packaging. Could I talk you into doing the same > >>> with > >>> TestMaker.bat? I also run TestMaker in some Windows systems and I > >>> find > >>> myself doing this within a cygwin environment as well. Cygwin > >>> requires > >>> executable permissions on batch files for execution purposes and > >>> this > >>> would prevent the step of changing permissions for other TestMaker > >>> users > >>> running in this environment. > >> > >> I'm ok with making that change. > >> > >> Maybe you can help me with a different problem. The way the build.xml > >> script is written now, the .sh files are correctly set with the 755 > >> permissions, but the resulting Zip file has two copies of the .sh > >> files. It's totally weird to me to see WinZip on Windows ask if it > >> can overwrite the .sh files. Any idea what I'm doing wrong? > >> > >> > >>> > >>> Since you included my suggestion for a SIP UAC/UAS I now wish I had > >>> edited it a little more closely... :o) I'm unsure how you plan to > >>> implement this feature in a single day (I rather thought there was > >>> more > >>> than a days work there) but kudos if you can accomplish it. I'll be > >>> working this week on a piece of code to handle new connection > >>> requests > >>> on a UAS. If you are interested in the code once I get it polished, > >>> I'll happily hand it over. I borrowed the design idea from Simon > >>> Foster's "Forwarding and Redirecting Network Ports" section 13.13 > >>> of the > >>> "Python Cookbook", O'Reilly publishing. > >> > >> All the days are just estimates right now. I'm meeting with the > >> engineers this week to get their estimate. Please send me the code > >> you create. I'd love to see your approach. > >> > >>> > >>> In the future, you may also use your recorder on SIP messaging by > >>> redirecting your instant messenger to TestMaker as a proxy. This > >>> kinda > >>> opens up a whole new realm of possibilities here as well... > >> > >> Totally agree with you on this. The proxy would easily extended to > >> record SIP sessions and create test cases. > >> > >>> > >>> Thanks for the terrific work, Frank. If I come up with more > >>> commentary, > >>> I'll pass it along. > >>> > >>> -Kyle > >>> > >>> > >>> On Wed, 2006-11-22 at 17:08 -0800, Frank Cohen wrote: > >>>> Work on TestMaker 5 continues. I wrote up a specification of the > >>>> remaining projects to complete. I expect PushToTest will fund the > >>>> development of the projects in this specification. I would love to > >>>> hear your feedback, suggestions, and prioritization. > >>>> > >>>> Download the TestMaker 5 completion specification document at: > >>>> http://downloads.pushtotest.com/tm5/TM5_Specification.pdf > >>>> > >>>> The document is 444K in Adobe Acrobat format. Please post your > >>>> feedback to this list. > >>>> > >>>> Thanks. > >>>> > >>>> -Frank > >>>> > >>>> -- > >>>> Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 > >>>> 7426 > >>>> Enterprise test automation solutions to check and monitor Web- > >>>> enabled > >>>> applications for functionality, scalability and reliability. > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> 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 > _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20061201/cdc975c3/attachment.htm From Mark.Lutton at thomson.com Fri Dec 1 08:14:24 2006 From: Mark.Lutton at thomson.com (Mark.Lutton@thomson.com) Date: Fri Dec 1 09:09:37 2006 Subject: FW: [ptt-users] HTTP params in agentbase script References: Message-ID: That was my mistake in typing the message. I typed it in, reading from the screen of the other computer, instead of copying over the network. self=params= makes everything stop at the next reference to 'self', which now references a list instead of a test. Mark Lutton Business Intelligence Services, a Thomson Business ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin Sent: Fri 12/1/2006 4:59 AM To: TestMaker users list; users@lists.pushtotest.com Subject: RE: [ptt-users] HTTP params in agentbase script I've worked out your problem your lines should read self.params= and not self=params= the second version will do nothing so your params will be the same as before Didnt spot that the first time round! hope that helps Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com on behalf of Mark.Lutton@thomson.com Sent: Thu 30/11/2006 18:12 To: users@lists.pushtotest.com Subject: FW: [ptt-users] HTTP params in agentbase script Thanks for the help. The results of the test are even stranger. Here is the beginning of the test, interspersed with Tomcat's localhost_access_log output: self.params = [ [ '''test''', '''maker''' ] ] self.get( ''http://localhost:8080/tomcat.gif''', self.params) "GET /tomcat.gif?test=maker HTTP/1.1" self=params = [ [ '''start''', '''true''' ], [ '''foo''', '''bar''' ] ] self.get( '''http://localhost:8080/myApp/quickStartFake.do''', self.params) "GET /myApp/quickStartFakeSession.do?start=true&foo=bar HTTP/1.1" "GET /myApp/images/MyAppFake.gif HTTP/1.1" "GET /myApp/images/app_logo_sm.gif HTTP/1.1" self.params = [ ] self.get( '''http://localhost:8080/myApp''' ) self.get( '''http://localhost:8080/myApp/''' ) "GET /myApp/?start=true&foo=bar HTTP/1.1" self.get( '''http://localhost:8080/myApp/index2.jsp''' ) "GET /myApp/index2.jsp?start=true&foo=bar HTTP/1.1" self.get( '''http://localhost:8080/myApp/appFramer.do''' ) "GET /myApp/appFramer.do?start=true&foo=bar HTTP/1.1" self.params = [ [ '''userName''', '''manager''' ], [ '''password''', '''manager''' ], [ '''submit''', '''Logon''' ] ] self.post( '''http://localhost:8080/myApp/logon.do''', self.params) "POST /myApp/logon.do?start=true&foo=bar HTTP/1.1" I have to assume the Tomcat log shows the request exactly as it is received, so the problem is on the client side. If I change the quickStart to a POST, I get this: self.params = [ [ '''test''', '''maker''' ] ] self.get( ''http://localhost:8080/tomcat.gif''', self.params) "GET /tomcat.gif?test=maker HTTP/1.1" self=params = [ [ '''start''', '''true''' ], [ '''foo''', '''bar''' ] ] self.post( '''http://localhost:8080/myApp/quickStartFake.do''', self.params) "POST /myApp/quickStartFakeSession.do?test=maker HTTP/1.1" Why are the parameters put into the query line for a GET but not for a POST? GET and POST both allow for a query line and for parameters. (GET and POST should work identically. The only difference between them is a semantic detail. GET requests are supposed to have no side effects; POST requests are assumed to have side effects. On Windows I have a shortcut to http://localhost:8080/myApp/quickStartFake.do?start=true which does a GET (I don't think a shortcut can do a POST) so this is a rare case of a GET with a side effect.) I can solve my problem for this script by using a POST, but I would like to understand what is going on here. Otherwise, the queries I construct in the script are not going to match the queries seen in production. Mark Lutton Business Intelligence Services, a Thomson Business ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin Sent: Thu 11/30/2006 5:15 AM To: TestMaker users list Subject: RE: [ptt-users] HTTP params in agentbase script I suggest you don't use that format, but the first format self.params = [ [ '''start''', '''true''' ] ] self.get('''http://localhost:8080/myApp/quickStartFake.do''') Hopefully this will help? Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Mark.Lutton@thomson.com Sent: 30 November 2006 01:20 To: users@lists.pushtotest.com Subject: [ptt-users] HTTP params in agentbase script Hello! I'm just beginning to use TestMaker and I have a problem that I don't understand. (TestMaker 4.4; Tomcat 5.0.28 on the server side.) I used the Recorder to create a script. This has a number of self.get() statements in it. Here is part of the script: self.params = [ [ '''userName''', '''manager''' ], ['''password''', '''manager''' ], [ '''submit''', '''Logon''' ] ] self.post( '''http://localhost:8080/myApp/logon.do''', self.params) On the server side I have the application print the parameters from the HTTP request: Logon: parameter: password=manager Logon: parameter: submit=Logon Logon: parameter: userName=manager My application has a "magic URL" which, if called as the very first request on start up, sets it to a local test mode. So I added the following to the script before any other self.get or self.post: self.get('''http://localhost:8080/myApp/quickStartFake.do?start=true''') This is followed by several other get's and then the post as seen above. But now here's what happens in the logon request: Logon: parameter: password=manager Logon: parameter: submit=Logon Logon: parameter: userName=manager Logon: parameter: start=true It should still have only the three parameters password, submit and userName. I don't think the problem is on the server side. The parameter is not cached, and it's not being put into the request by the application. I can't force this to happen from the browser. Here is what I see in the Tomcat log. In the first case (no quickStartFake): "POST /myApp/logon.do HTTP/1.1" "GET /myApp/managerConsole.do HTTP/1.1" etc. In the second case: "GET /myApp/quickStartFake.do?start=true HTTP/1.1" "POST /myApp/logon.do?start=true HTTP/1.1" "GET /myApp/managerConsole.do?start=true HTTP/1.1" etc. It appears that the query parameter is extracted from the first get and appended to each succeeding get or post. I can't see how this is happening in agentbase.py, or any way to fix this. Can anyone explain what is happening? Thanks. Mark Lutton Business Intelligence Services, a Thomson Business _______________________________________________ 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 -------------- next part -------------- _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From hostetlerm at gmail.com Mon Dec 4 08:54:45 2006 From: hostetlerm at gmail.com (Mike Hostetler) Date: Mon Dec 4 09:50:35 2006 Subject: [ptt-users] NullPointerException when trying to record Message-ID: I'm trying to record a web application in TestMaker and, when I try it I get a NullPointerException. The full trace is: java.lang.NullPointerException at com.bitmechanic.maxq.SwingMain.reportOutsideException(SwingMain.java:305) at com.bitmechanic.maxq.RequestHandler.run(RequestHandler.java:243) at java.lang.Thread.run(Thread.java:534) Here is the appropriate info that TestMaker gives when it starts up: TestMaker Version: TestMaker 4.4 Number: 71 TOOL Version: 1.4.4 Build Date: April 12, 2006 OS Name: Windows XP Class Version: 48.0 JVM Version: 1.4.2_04 I found an old (2005) incident on this list that using the IP address instead of the DNS make it worked but, alas, that didn't work for me. -- Mike Hostetler http://mike.hostetlerhome.com/ From Mark.Lutton at thomson.com Tue Dec 5 14:57:43 2006 From: Mark.Lutton at thomson.com (Mark.Lutton@thomson.com) Date: Tue Dec 5 15:53:50 2006 Subject: [ptt-users] Grabbing and testing applet code from server Message-ID: Hello all! I'm new to TestMaker and I'm wondering if something is possible. My web app serves up a Java applet which then makes HTTP requests and does a bunch of other interesting things. (I wrote it a couple of years ago. If I were starting it today I suppose I might consider JavaScript or Python or something ... but anyway.) I know I can put the applet's JAR file into the classpath and then load classes into TestMaker and so on. But is it possible to get the JAR file from the server and use it? This way I know I'm testing exactly the version on the server. I'm modifying a recorded test script that subclasses agentbase.py: self.get('''http://localhost:8080/MyApp/applets/MyApplets.jar''') mimetype = self.response.getParameterValue("Content-Type") if mimetype and mimetype[:9] = "application/java-archive": print "Got Jar file" # This prints, so it works, and I've also printed the raw result. If I were to write the response to disk and call it "MyApplets.jar", I'd have exactly the response I want. I've tested this with a Java program called "grabFile.java" that creates a URL and a URLConnection, opens the connection, gets the input stream and writes it to the disk. I can probably figure out how to write this in Python. But if I did write it to disk, I don't know if I could access it. If I wrote it to a file on the classpath, would it be reloaded? I'm wondering if instead I can do what (I assume) the browser does, which is to create the Jar file as an object and load classes from it. Is this possible? Mark Lutton Business Intelligence Services, a Thomson business. From fcohen at pushtotest.com Wed Dec 6 11:19:35 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Wed Dec 6 12:16:01 2006 Subject: [ptt-users] Problem with HTTPProtocol.connect(1) In-Reply-To: <448E1FA789024B42BAE0BAC496FAA29001000AAB@mail10.artez.com> References: <448E1FA789024B42BAE0BAC496FAA29001000AAB@mail10.artez.com> Message-ID: <4259E6FD-DC64-4C59-8674-8C15B3D3E2CD@pushtotest.com> I'd like to commit the changes to support the redirect soon. How is it going confirming the changes? -Frank On Nov 27, 2006, at 6:36 AM, Aaron Romeo wrote: > I can't... No offence please, I just can't because my employer > would not > appreciate it. > > However, I'm going to try the new tool.jar, and I will let you know > how that > goes. > > Aaron. > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Dyer, Kevin > Sent: Monday, November 27, 2006 9:33 AM > To: TestMaker users list > Subject: RE: [ptt-users] Problem with HTTPProtocol.connect(1) > > Aaron, > > Mind sending your ASP code along, at least the section that > produces the > redirection? > > Kevin > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Aaron Romeo > Sent: Monday, November 27, 2006 9:25 AM > To: TestMaker users list > Subject: RE: [ptt-users] Problem with HTTPProtocol.connect(1) > > My testing has been with MS generated code (ASP .net code to be > exact). > > > Wouldn't surprise me if Microsoft were to break the norm... > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Dyer, Kevin > Sent: Saturday, November 25, 2006 1:30 PM > To: TestMaker users list > Subject: RE: [ptt-users] Problem with HTTPProtocol.connect(1) > > Frank, > > That's because it's illegal per RFC2116 section 14.30. The BNF for the > location header clearly states that it must be an absolute URI. > > Location = "Location" ":" absoluteURI > > Relative URI must only be sent using the META refresh tag. Could this > data have been generated from a Microsoft server, as I've seen several > illegal headers and proxy rewrites from MS servers. > > Kevin > > > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen > Sent: Saturday, November 25, 2006 12:16 PM > To: TestMaker users list > Subject: Re: [ptt-users] Problem with HTTPProtocol.connect(1) > > I added code to the TOOL HTTPProtocolHandler class to handle redirects > where the host returns a location that does not include the base > information (protocol, host, port.) > > Of course, I couldn't find a Web site that does a redirect like this. > (Irony lives on the Web.) So I would ask that you try out the new code > and let me know the results. > > Download the tool.jar from the following URL: > http://downloads.pushtotest.com/200611/tool.jar > > Replace the TestMaker_home/lib/tool.jar with the new file you > downloaded. > > Restart TestMaker and run a script that communicates with a host that > issues a redirect. For instance: > > from com.pushtotest.tool.protocolhandler import ProtocolHandler, > HTTPProtocol http = ProtocolHandler.getProtocol("http") > # Enables the following 2 lines if you want to use the TestMaker > Network > Monitor #http.setProxyHost( "localhost" ) #http.setProxyPort( 8091 ) > http.setUrl( "http://www.pushtotest.com ) # Replace this with your > own > URL > http.connect(1) > > This version of tool.jar automatically prints debug information that > will help me debug the code. Please let me know if it works, or if it > fails. Thanks! > > -Frank > > > On Nov 24, 2006, at 5:47 PM, Frank Cohen wrote: > >> It looks like I will have some time this weekend to add the browser >> emulation capability for redirects. Is anyone aware of URL's that do >> redirects? If so, send me a few links that I can test the code >> against. Thanks. >> >> Also, I'm expecting to write redirect emulations for MS Internet >> Explorer and Foxfire. What other browsers are people using? >> >> -Frank >> >> >> On Nov 21, 2006, at 12:00 PM, Frank Cohen wrote: >> >>> Hi Aaron: I've taken a look at this in the past and found that the >>> browsers handle redirects differently. >>> >>> >>> >>> On Nov 21, 2006, at 8:11 AM, Aaron Romeo wrote: >>> >>>> Hello, >>>> >>>> I have a problem with the HTTPProtocol.connect(1) function. >>>> >>>> The website I am testing uses a path to redirect. For example, if >>>> the base URL is www.myurl.com, the first page might be >>>> www.myurl.com/ default.html. >>>> On this page, I have another link that links me to second.html. >>>> The browser >>>> can identify that I am referring to www.myurl.com/second.html. >>>> However >>>> TestMaker doesn't contain my base and host URL anymore. It has >>>> also > >>>> lost the protocol. >>>> >>>> Can someone tell me how I can get around this? I would really like >>>> to have TestMaker handle my redirects for me. >>>> >>>> Thanks, >>>> -- >>>> Aaron Romeo >>>> _______________________________________________ >>>> 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 > _______________________________________________ > 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 Mark.Lutton at Thomson.com Wed Dec 6 13:24:32 2006 From: Mark.Lutton at Thomson.com (Mark.Lutton@Thomson.com) Date: Wed Dec 6 14:21:03 2006 Subject: [ptt-users] Getting non-UTF-8 content Message-ID: Hi, all! I'm just learning TestMaker and I'm trying it out on a web app that I wrote last year. (The web app is internal to my company.) This web app serves up a Java applet which presents a user interface and then does its own HTTP posts. The first thing I want to do in the test is request the applet and save it to local disk. (Later I'll deal with the problems of trying to load classes from it.) I started off with a script generated by the TestMaker New Agent Wizard Recorder. I added code to runTest(). Here it is: AppletsJar = self.get( '''http://localhost:8080/MyApp/applets/Applets.jar''') mimetype = self.response.getParameterValue("Content-Type") if mimetype and mimetype[-24:] = "application/java-archive": responseContent = self.response.getContent() jarFile = open ("Applets.jar", 'wb') jarFile.write(responseContent) jarFile.close() print "Applets.jar written" So far so good. So I should be able to open Applets.jar with WinZip, right? But WinZip says the Jar file is corrupt. Here are the first 16 bytes of the file sent by the server, in hex: 50 4B 03 04 14 00 08 00 08 00 F8 03 85 35 00 00 Here are the first 16 bytes of the file written by the test: 50 4B 03 04 14 00 08 00 08 00 F8 03 26 35 00 00 It IS corrupt! x'85' has become x'26'. Why? The reason is that the content is assumed to be UTF-8 encoded. x'85' is an invalid UTF-8 encoding. With no "charset=UTF-8" in the mimetype, the ProtocolHandler should not be trying to decode it. (The browser (or Java plug-in, whichever) does this correctly when the application is run normally.) (The server is Tomcat 5.0 by the way.) How do I fix this? Mark Lutton Business Intelligence Services, a Thomson Business From Mark.Lutton at thomson.com Wed Dec 6 13:57:07 2006 From: Mark.Lutton at thomson.com (Mark.Lutton@thomson.com) Date: Wed Dec 6 14:53:52 2006 Subject: [ptt-users] More on getting non-UTF-8 content Message-ID: Followup on previous message: Here is the code that does not work. AppletsJar = self.get( '''http://localhost:8080/MyApp/applets/Applets.jar''' ) responseContent = self.response.getContent() jarFile = open("Applets.jar", 'wb') jarFile.write(responseContent) jarFile.close() print "Applets.jar written" As noted, x'85' in the file is translated to x'26', corrupting the Jar file. Fortunately you can write Java code (from a working Java program) in Jython. The following code in the testcase works correctly: from java.net import URL, URLConnection from java.io import DataOutputStream, FileOutputStream, DataInputStream myURL = URL('''http://localhost:8080/MyApp/applets/Applets.jar") cc = myURL.openConnection() jarFile = DataOutputStream(FileOutputStream("Applets.jar") inStream = DataInputStream(cc.getInputStream()) inNum = inStream.read() while -1 != inNum: jarFile.write(inNum) inNum = inStream.read() jarFile.close() print "Applets.jar written" So I can work around the problem by writing Java code in a Python script. (The saved file is identical to the file on the server.) Is there any way I can make the first version work? Mark Lutton Business Intelligence Services, a Thomson Business From prabhat.jha at jboss.com Wed Dec 6 15:45:57 2006 From: prabhat.jha at jboss.com (Prabhat Jha) Date: Wed Dec 6 16:42:23 2006 Subject: [ptt-users] jboss and XS Test Message-ID: Hi, I just downloaded TestMaker and I am trying to run jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for sushiboats deploys with no problem. I am having problem running the XS Test. I would appreciate if you could help with me following questions: 1. Where do I set the HOME locations for the JBoss application server in startup script? I am referring to Section 1.5 in the developer journal. 2. Prebuilt binaries has client side jar as well. Where do I need to add this jar so that it's in classpath? 3. I am getting following error when I run sushiboats.py Agent error: Traceback (innermost last): File "", line 22, in ? ImportError: No module named rpc I think this error can be resolved once I have answer to 1 & 2. Thanks in advance for your help. Regards, Prabhat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20061206/3788fd17/attachment-0001.htm From fcohen at pushtotest.com Wed Dec 6 18:24:43 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Wed Dec 6 19:21:10 2006 Subject: [ptt-users] jboss and XS Test In-Reply-To: References: Message-ID: Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you using? The file name will help. Thanks. -Frank On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > Hi, > > > > I just downloaded TestMaker and I am trying to run > jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for > sushiboats deploys with no problem. I am having problem running the > XS Test. I would appreciate if you could help with me following > questions: > > > > Where do I set the HOME locations for the JBoss application server > in startup script? I am referring to Section 1.5 in the developer > journal. > Prebuilt binaries has client side jar as well. Where do I need to > add this jar so that it?s in classpath? > I am getting following error when I run sushiboats.py > Agent error: > > Traceback (innermost last): > > File "", line 22, in ? > > ImportError: No module named rpc > > > > > > I think this error can be resolved once I have answer to 1 & 2. > Thanks in advance for your help. > > > > Regards, > > Prabhat > > > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users From prabhat.jha at jboss.com Wed Dec 6 19:31:05 2006 From: prabhat.jha at jboss.com (Prabhat Jha) Date: Wed Dec 6 20:27:29 2006 Subject: [ptt-users] jboss and XS Test References: Message-ID: Hi Frank, I appreciate your quick response. I downloaded SOA kit for JBoss 4 from http://dev2dev.bea.com/soa/toolkit.html and the zip file is SOAKit_JBoss4.zip. Is there a latest version of this? I basically started the GUI and am trying to run jboss4_sushiboats.py . All the variables seem to have been set correctly. But I think I would need to point something to JBOSS_HOME so that all the binaries under JBOSS_HOME/client can be added to classpath. Please let me know what I am missing. Regards, Prabhat ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Frank Cohen Sent: Wed 12/6/2006 8:24 PM To: TestMaker users list Subject: Re: [ptt-users] jboss and XS Test Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you using? The file name will help. Thanks. -Frank On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > Hi, > > > > I just downloaded TestMaker and I am trying to run > jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for > sushiboats deploys with no problem. I am having problem running the > XS Test. I would appreciate if you could help with me following > questions: > > > > Where do I set the HOME locations for the JBoss application server > in startup script? I am referring to Section 1.5 in the developer > journal. > Prebuilt binaries has client side jar as well. Where do I need to > add this jar so that it's in classpath? > I am getting following error when I run sushiboats.py > Agent error: > > Traceback (innermost last): > > File "", line 22, in ? > > ImportError: No module named rpc > > > > > > I think this error can be resolved once I have answer to 1 & 2. > Thanks in advance for your help. > > > > Regards, > > Prabhat > > > > _______________________________________________ > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 5966 bytes Desc: not available Url : http://cake.pushtotest.com/pipermail/users/attachments/20061206/63cf3e8e/attachment.bin From fcohen at pushtotest.com Wed Dec 6 21:22:17 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Wed Dec 6 22:18:49 2006 Subject: [ptt-users] jboss and XS Test In-Reply-To: References: Message-ID: <8EE4FA58-0AC4-474E-96B3-789D08B9E65E@pushtotest.com> Hi Prabhat: Let me look into this for you. I'll get back to you shortly. I seem to remember that JBOSS_HOME needed to point to the JBoss Web Services stack and the doclet stack for EJB deployment. -Frank On Dec 6, 2006, at 7:31 PM, Prabhat Jha wrote: > Hi Frank, > > I appreciate your quick response. > > I downloaded SOA kit for JBoss 4 from http://dev2dev.bea.com/soa/ > toolkit.html and the zip file is SOAKit_JBoss4.zip. Is there a > latest version of this? > > I basically started the GUI and am trying to run > jboss4_sushiboats.py . All the variables seem to have been set > correctly. But I think I would need to point something to > JBOSS_HOME so that all the binaries under JBOSS_HOME/client can be > added to classpath. Please let me know what I am missing. > > Regards, > Prabhat > > ________________________________ > > From: users-bounces@lists.pushtotest.com on behalf of Frank Cohen > Sent: Wed 12/6/2006 8:24 PM > To: TestMaker users list > Subject: Re: [ptt-users] jboss and XS Test > > > > Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you > using? The file name will help. Thanks. -Frank > > > On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > >> Hi, >> >> >> >> I just downloaded TestMaker and I am trying to run >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for >> sushiboats deploys with no problem. I am having problem running the >> XS Test. I would appreciate if you could help with me following >> questions: >> >> >> >> Where do I set the HOME locations for the JBoss application server >> in startup script? I am referring to Section 1.5 in the developer >> journal. >> Prebuilt binaries has client side jar as well. Where do I need to >> add this jar so that it's in classpath? >> I am getting following error when I run sushiboats.py >> Agent error: >> >> Traceback (innermost last): >> >> File "", line 22, in ? >> >> ImportError: No module named rpc >> >> >> >> >> >> I think this error can be resolved once I have answer to 1 & 2. >> Thanks in advance for your help. >> >> >> >> Regards, >> >> Prabhat >> >> >> >> _______________________________________________ >> 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 p.cuda at worldnet.att.net Thu Dec 7 05:55:31 2006 From: p.cuda at worldnet.att.net (Paul Cuda) Date: Thu Dec 7 06:52:58 2006 Subject: [ptt-users] jboss and XS Test In-Reply-To: References: Message-ID: <3814-SnapperMsgB9403D8AC19DCDF1@[75.198.198.189]> ___ Sent with SnapperMail www.snappermail.com ..... Original Message ....... On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen wrote: >Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you >using? The file name will help. Thanks. -Frank > > >On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > >> Hi, >> >> >> >> I just downloaded TestMaker and I am trying to run >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for >> sushiboats deploys with no problem. I am having problem running the >> XS Test. I would appreciate if you could help with me following >> questions: >> >> >> >> Where do I set the HOME locations for the JBoss application server >> in startup script? I am referring to Section 1.5 in the developer >> journal. >> Prebuilt binaries has client side jar as well. Where do I need to >> add this jar so that it?s in classpath? >> I am getting following error when I run sushiboats.py >> Agent error: >> >> Traceback (innermost last): >> >> File "", line 22, in ? >> >> ImportError: No module named rpc >> >> >> >> >> >> I think this error can be resolved once I have answer to 1 & 2. >> Thanks in advance for your help. >> >> >> >> Regards, >> >> Prabhat >> >> >> >> _______________________________________________ >> 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 prabhat.jha at jboss.com Thu Dec 7 06:01:35 2006 From: prabhat.jha at jboss.com (Prabhat Jha) Date: Thu Dec 7 06:59:28 2006 Subject: [ptt-users] jboss and XS Test References: <3814-SnapperMsgB9403D8AC19DCDF1@[75.198.198.189]> Message-ID: Hi Paul, I do not see any content in your mail. Looks like accidental click on send button:-( Regards, Prabhat ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Paul Cuda Sent: Thu 12/7/2006 7:55 AM To: TestMaker users list Subject: Re: [ptt-users] jboss and XS Test ___ Sent with SnapperMail www.snappermail.com ..... Original Message ....... On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen wrote: >Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you >using? The file name will help. Thanks. -Frank > > >On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > >> Hi, >> >> >> >> I just downloaded TestMaker and I am trying to run >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for >> sushiboats deploys with no problem. I am having problem running the >> XS Test. I would appreciate if you could help with me following >> questions: >> >> >> >> Where do I set the HOME locations for the JBoss application server >> in startup script? I am referring to Section 1.5 in the developer >> journal. >> Prebuilt binaries has client side jar as well. Where do I need to >> add this jar so that it's in classpath? >> I am getting following error when I run sushiboats.py >> Agent error: >> >> Traceback (innermost last): >> >> File "", line 22, in ? >> >> ImportError: No module named rpc >> >> >> >> >> >> I think this error can be resolved once I have answer to 1 & 2. >> Thanks in advance for your help. >> >> >> >> Regards, >> >> Prabhat >> >> >> >> _______________________________________________ >> 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 5842 bytes Desc: not available Url : http://cake.pushtotest.com/pipermail/users/attachments/20061207/498ae697/attachment-0001.bin From prabhat.jha at jboss.com Thu Dec 7 07:13:31 2006 From: prabhat.jha at jboss.com (Prabhat Jha) Date: Thu Dec 7 08:10:19 2006 Subject: [ptt-users] jboss and XS Test Message-ID: I see JBOSS_HOME being used in pushToTest\source\dev\SushiBoats\JBoss4\deploy\build.xml. I am going to follow on that but what I am trying to do is to use prebuilt binaries, both client and server, through GUI. Intuitively, I was thinking it would be in pushToTest\TestMaker\XSTest\properties.py. Regards, Prabhat ________________________________ From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Prabhat Jha Sent: Thursday, December 07, 2006 8:02 AM To: TestMaker users list Subject: RE: [ptt-users] jboss and XS Test Hi Paul, I do not see any content in your mail. Looks like accidental click on send button:-( Regards, Prabhat ________________________________ From: users-bounces@lists.pushtotest.com on behalf of Paul Cuda Sent: Thu 12/7/2006 7:55 AM To: TestMaker users list Subject: Re: [ptt-users] jboss and XS Test ___ Sent with SnapperMail www.snappermail.com ..... Original Message ....... On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen wrote: >Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you >using? The file name will help. Thanks. -Frank > > >On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > >> Hi, >> >> >> >> I just downloaded TestMaker and I am trying to run >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for >> sushiboats deploys with no problem. I am having problem running the >> XS Test. I would appreciate if you could help with me following >> questions: >> >> >> >> Where do I set the HOME locations for the JBoss application server >> in startup script? I am referring to Section 1.5 in the developer >> journal. >> Prebuilt binaries has client side jar as well. Where do I need to >> add this jar so that it's in classpath? >> I am getting following error when I run sushiboats.py >> Agent error: >> >> Traceback (innermost last): >> >> File "", line 22, in ? >> >> ImportError: No module named rpc >> >> >> >> >> >> I think this error can be resolved once I have answer to 1 & 2. >> Thanks in advance for your help. >> >> >> >> Regards, >> >> Prabhat >> >> >> >> _______________________________________________ >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://cake.pushtotest.com/pipermail/users/attachments/20061207/dfc6fb45/attachment.htm From fcohen at pushtotest.com Thu Dec 7 11:12:08 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Thu Dec 7 12:08:44 2006 Subject: [ptt-users] jboss and XS Test In-Reply-To: References: Message-ID: <08987308-22EC-4C35-A0E4-9D4AADC96D20@pushtotest.com> Hi Prabhat: 1. The source\dev\XSTest\tm_start\SetSoakitEnv.bat is a little script that contains the variables you should set for the tests to work. JBOSS_HOME should point to the JBoss installation directory (where it was installed). If it is working in a remote server, we will require some of the jar that came with it, as distributables, in the client side. I have this in in the list: source\dev\SushiBoats\JBoss4\deploy\build.xml(15): source\dev\SushiBoats\JBoss4\deploy\build.xml(160): source\dev\TheBuffet\JBoss4\deploy\build.xml(29): source\dev\TheBuffet\JBoss4\deploy\build.xml(37): source\dev\TheBuffet\JBoss4\deploy\build.xml(114): source\dev\TVDinner\JBoss4\deploy\build.xml(17): source\dev\TVDinner\JBoss4\deploy\build.xml(173): Note that for Sushiboats we need the JBOSS_HOME only to deploy. It is in TheBuffet that we use the Jboss Client and some Lib jar files. 2. TestMaker is not ready out of the box to run the examples. The TestMaker.bat and TMCP.bat files require some changes, in order to load the client jar files required to run some agents. Particularly, the problem presented is in the jboss4_sushiboats.py line : # javax's Stub from javax.xml.rpc import Stub This is loaded in the TMCP_Rest.bat, referenced in the line: REM ** JWSDP Libraries set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-impl.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-api.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-spi.jar Note that the JWSDP must be installed and the JWSDP_HOME should be set to point to it. So, please copy the bat files that are in the SOAKit\source\dev\XSTest \tm_start directory to the TestMaker install dir (be sure to include the tesmaker.bat). Then edit the SetSoakitEnv.bat script to set the environment variables, and execute it. Lastly, run the testmaker.bat file. It will show a selection menu, where the user simply needs to choose the option 3 (Rest) which calls the correct TCMP and sets all libraries for running JBoss examples. Hope this helps. -Frank On Dec 7, 2006, at 7:13 AM, Prabhat Jha wrote: > I see JBOSS_HOME being used in pushToTest\source\dev\SushiBoats > \JBoss4\deploy\build.xml. I am going to follow on that but what I > am trying to do is to use prebuilt binaries, both client and > server, through GUI. Intuitively, I was thinking it would be in > pushToTest\TestMaker\XSTest\properties.py. > > > > Regards, > > Prabhat > > > > From: users-bounces@lists.pushtotest.com [mailto:users- > bounces@lists.pushtotest.com] On Behalf Of Prabhat Jha > Sent: Thursday, December 07, 2006 8:02 AM > To: TestMaker users list > Subject: RE: [ptt-users] jboss and XS Test > > > > Hi Paul, > > > > I do not see any content in your mail. Looks like accidental click > on send button:-( > > > > Regards, > > Prabhat > > > > From: users-bounces@lists.pushtotest.com on behalf of Paul Cuda > Sent: Thu 12/7/2006 7:55 AM > To: TestMaker users list > Subject: Re: [ptt-users] jboss and XS Test > > > > ___ > Sent with SnapperMail > www.snappermail.com > > ..... Original Message ....... > On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen > wrote: > >Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you > >using? The file name will help. Thanks. -Frank > > > > > >On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > > > >> Hi, > >> > >> > >> > >> I just downloaded TestMaker and I am trying to run > >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for > >> sushiboats deploys with no problem. I am having problem running the > >> XS Test. I would appreciate if you could help with me following > >> questions: > >> > >> > >> > >> Where do I set the HOME locations for the JBoss application server > >> in startup script? I am referring to Section 1.5 in the developer > >> journal. > >> Prebuilt binaries has client side jar as well. Where do I need to > >> add this jar so that it?s in classpath? > >> I am getting following error when I run sushiboats.py > >> Agent error: > >> > >> Traceback (innermost last): > >> > >> File "", line 22, in ? > >> > >> ImportError: No module named rpc > >> > >> > >> > >> > >> > >> I think this error can be resolved once I have answer to 1 & 2. > >> Thanks in advance for your help. > >> > >> > >> > >> Regards, > >> > >> Prabhat > >> > >> > >> > >> _______________________________________________ > >> 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 prabhat.jha at jboss.com Thu Dec 7 12:09:05 2006 From: prabhat.jha at jboss.com (Prabhat Jha) Date: Thu Dec 7 13:05:41 2006 Subject: [ptt-users] jboss and XS Test Message-ID: Hi Frank, Somehow I had this perception that TestMaker would work out of the box and the error log made me think that download must be missing something or some config is not correct. I will try what you have suggested and see how it goes. Many thanks for your help. Regards, Prabhat -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen Sent: Thursday, December 07, 2006 1:12 PM To: TestMaker users list Subject: Re: [ptt-users] jboss and XS Test Hi Prabhat: 1. The source\dev\XSTest\tm_start\SetSoakitEnv.bat is a little script that contains the variables you should set for the tests to work. JBOSS_HOME should point to the JBoss installation directory (where it was installed). If it is working in a remote server, we will require some of the jar that came with it, as distributables, in the client side. I have this in in the list: source\dev\SushiBoats\JBoss4\deploy\build.xml(15): source\dev\SushiBoats\JBoss4\deploy\build.xml(160): source\dev\TheBuffet\JBoss4\deploy\build.xml(29): source\dev\TheBuffet\JBoss4\deploy\build.xml(37): source\dev\TheBuffet\JBoss4\deploy\build.xml(114): source\dev\TVDinner\JBoss4\deploy\build.xml(17): source\dev\TVDinner\JBoss4\deploy\build.xml(173): Note that for Sushiboats we need the JBOSS_HOME only to deploy. It is in TheBuffet that we use the Jboss Client and some Lib jar files. 2. TestMaker is not ready out of the box to run the examples. The TestMaker.bat and TMCP.bat files require some changes, in order to load the client jar files required to run some agents. Particularly, the problem presented is in the jboss4_sushiboats.py line : # javax's Stub from javax.xml.rpc import Stub This is loaded in the TMCP_Rest.bat, referenced in the line: REM ** JWSDP Libraries set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-impl.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-api.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-spi.jar Note that the JWSDP must be installed and the JWSDP_HOME should be set to point to it. So, please copy the bat files that are in the SOAKit\source\dev\XSTest \tm_start directory to the TestMaker install dir (be sure to include the tesmaker.bat). Then edit the SetSoakitEnv.bat script to set the environment variables, and execute it. Lastly, run the testmaker.bat file. It will show a selection menu, where the user simply needs to choose the option 3 (Rest) which calls the correct TCMP and sets all libraries for running JBoss examples. Hope this helps. -Frank On Dec 7, 2006, at 7:13 AM, Prabhat Jha wrote: > I see JBOSS_HOME being used in pushToTest\source\dev\SushiBoats > \JBoss4\deploy\build.xml. I am going to follow on that but what I > am trying to do is to use prebuilt binaries, both client and > server, through GUI. Intuitively, I was thinking it would be in > pushToTest\TestMaker\XSTest\properties.py. > > > > Regards, > > Prabhat > > > > From: users-bounces@lists.pushtotest.com [mailto:users- > bounces@lists.pushtotest.com] On Behalf Of Prabhat Jha > Sent: Thursday, December 07, 2006 8:02 AM > To: TestMaker users list > Subject: RE: [ptt-users] jboss and XS Test > > > > Hi Paul, > > > > I do not see any content in your mail. Looks like accidental click > on send button:-( > > > > Regards, > > Prabhat > > > > From: users-bounces@lists.pushtotest.com on behalf of Paul Cuda > Sent: Thu 12/7/2006 7:55 AM > To: TestMaker users list > Subject: Re: [ptt-users] jboss and XS Test > > > > ___ > Sent with SnapperMail > www.snappermail.com > > ..... Original Message ....... > On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen > wrote: > >Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you > >using? The file name will help. Thanks. -Frank > > > > > >On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > > > >> Hi, > >> > >> > >> > >> I just downloaded TestMaker and I am trying to run > >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for > >> sushiboats deploys with no problem. I am having problem running the > >> XS Test. I would appreciate if you could help with me following > >> questions: > >> > >> > >> > >> Where do I set the HOME locations for the JBoss application server > >> in startup script? I am referring to Section 1.5 in the developer > >> journal. > >> Prebuilt binaries has client side jar as well. Where do I need to > >> add this jar so that it's in classpath? > >> I am getting following error when I run sushiboats.py > >> Agent error: > >> > >> Traceback (innermost last): > >> > >> File "", line 22, in ? > >> > >> ImportError: No module named rpc > >> > >> > >> > >> > >> > >> I think this error can be resolved once I have answer to 1 & 2. > >> Thanks in advance for your help. > >> > >> > >> > >> Regards, > >> > >> Prabhat > >> > >> > >> > >> _______________________________________________ > >> 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 fcohen at pushtotest.com Thu Dec 7 13:10:56 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Thu Dec 7 14:07:30 2006 Subject: [ptt-users] jboss and XS Test In-Reply-To: References: Message-ID: <790965D5-7497-4566-8CD8-8F6B4B23DD77@pushtotest.com> Glad to help. TestMaker and the SOA Performance Kit should work "out of the box" at least that's the goal. Once you get it working I'd appreciate your notes on what went wrong so we can revise the Kit. Thanks. -Frank On Dec 7, 2006, at 12:09 PM, Prabhat Jha wrote: > Hi Frank, > > Somehow I had this perception that TestMaker would work out of the box > and the error log made me think that download must be missing > something > or some config is not correct. I will try what you have suggested and > see how it goes. Many thanks for your help. > > Regards, > Prabhat > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen > Sent: Thursday, December 07, 2006 1:12 PM > To: TestMaker users list > Subject: Re: [ptt-users] jboss and XS Test > > Hi Prabhat: > > 1. The source\dev\XSTest\tm_start\SetSoakitEnv.bat is a little script > that contains the variables you should set for the tests to work. > JBOSS_HOME should point to the JBoss installation directory (where it > was installed). If it is working in a remote server, we will require > some of the jar that came with it, as distributables, in the client > side. > > I have this in in the list: > source\dev\SushiBoats\JBoss4\deploy\build.xml(15): name="jboss.home" value="${env.JBOSS_HOME}"/> > source\dev\SushiBoats\JBoss4\deploy\build.xml(160): > source\dev\TheBuffet\JBoss4\deploy\build.xml(29): > source\dev\TheBuffet\JBoss4\deploy\build.xml(37): > source\dev\TheBuffet\JBoss4\deploy\build.xml(114): > source\dev\TVDinner\JBoss4\deploy\build.xml(17): name="jboss.home" value="${env.JBOSS_HOME}"/> > source\dev\TVDinner\JBoss4\deploy\build.xml(173): > > Note that for Sushiboats we need the JBOSS_HOME only to deploy. It > is in TheBuffet that we use the Jboss Client and some Lib jar files. > > 2. TestMaker is not ready out of the box to run the examples. The > TestMaker.bat and TMCP.bat files require some changes, in order to > load the client jar files required to run some agents. > Particularly, the problem presented is in the jboss4_sushiboats.py > line : > # javax's Stub > from javax.xml.rpc import Stub > > This is loaded in the TMCP_Rest.bat, referenced in the line: > REM ** JWSDP Libraries > set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-impl.jar > set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-api.jar > set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-spi.jar > > Note that the JWSDP must be installed and the JWSDP_HOME should be > set to point to it. > > So, please copy the bat files that are in the SOAKit\source\dev\XSTest > \tm_start directory to the TestMaker install dir (be sure to include > the tesmaker.bat). > Then edit the SetSoakitEnv.bat script to set the environment > variables, and execute it. > > Lastly, run the testmaker.bat file. It will show a selection menu, > where the user simply needs to choose the option 3 (Rest) which calls > the correct TCMP and sets all libraries for running JBoss examples. > > Hope this helps. > > -Frank > > > On Dec 7, 2006, at 7:13 AM, Prabhat Jha wrote: > >> I see JBOSS_HOME being used in pushToTest\source\dev\SushiBoats >> \JBoss4\deploy\build.xml. I am going to follow on that but what I >> am trying to do is to use prebuilt binaries, both client and >> server, through GUI. Intuitively, I was thinking it would be in >> pushToTest\TestMaker\XSTest\properties.py. >> >> >> >> Regards, >> >> Prabhat >> >> >> >> From: users-bounces@lists.pushtotest.com [mailto:users- >> bounces@lists.pushtotest.com] On Behalf Of Prabhat Jha >> Sent: Thursday, December 07, 2006 8:02 AM >> To: TestMaker users list >> Subject: RE: [ptt-users] jboss and XS Test >> >> >> >> Hi Paul, >> >> >> >> I do not see any content in your mail. Looks like accidental click >> on send button:-( >> >> >> >> Regards, >> >> Prabhat >> >> >> >> From: users-bounces@lists.pushtotest.com on behalf of Paul Cuda >> Sent: Thu 12/7/2006 7:55 AM >> To: TestMaker users list >> Subject: Re: [ptt-users] jboss and XS Test >> >> >> >> ___ >> Sent with SnapperMail >> www.snappermail.com >> >> ..... Original Message ....... >> On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen >> wrote: >>> Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you >>> using? The file name will help. Thanks. -Frank >>> >>> >>> On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: >>> >>>> Hi, >>>> >>>> >>>> >>>> I just downloaded TestMaker and I am trying to run >>>> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for >>>> sushiboats deploys with no problem. I am having problem running the >>>> XS Test. I would appreciate if you could help with me following >>>> questions: >>>> >>>> >>>> >>>> Where do I set the HOME locations for the JBoss application server >>>> in startup script? I am referring to Section 1.5 in the developer >>>> journal. >>>> Prebuilt binaries has client side jar as well. Where do I need to >>>> add this jar so that it's in classpath? >>>> I am getting following error when I run sushiboats.py >>>> Agent error: >>>> >>>> Traceback (innermost last): >>>> >>>> File "", line 22, in ? >>>> >>>> ImportError: No module named rpc >>>> >>>> >>>> >>>> >>>> >>>> I think this error can be resolved once I have answer to 1 & 2. >>>> Thanks in advance for your help. >>>> >>>> >>>> >>>> Regards, >>>> >>>> Prabhat >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > From fcohen at pushtotest.com Thu Dec 7 18:48:42 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Thu Dec 7 19:45:22 2006 Subject: [ptt-users] Time to Vote: For TestMaker Message-ID: <19A63DF9-EEF9-4C78-8B30-0DC6B6BD21B1@pushtotest.com> TestMaker is nominated for a readers choice award from Sys Con magazine. If TestMaker helped you, then please vote for TestMaker. Vote at this URL: http://soa.sys-con.com/general/readerschoice.htm Thanks! -Frank -- Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426 TestMaker: The open-source SOA test automation tool From fcohen at pushtotest.com Fri Dec 8 23:05:18 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Sat Dec 9 13:20:05 2006 Subject: [ptt-users] Preparing TestMaker 4.4.1 maintenance release Message-ID: We're preparing a minor bug-fix maintenance release of TestMaker 4.4.1. Here is what we have so far: # WebObjects and Microsoft IIS users have occassionally found these servers returning HTTP redirect response codes with a relative URI. RFC 2116 section 14.30 requires the location header to be an absolute URI. According to the RFC relative URIs must only be sent using the META refresh tag. The TestMaker team does not want TestMaker to be a traffic cop for implementations of RFC 2116. So TestMaker 4.4.1 HTTPProtocol has a special check for the relative URI on redirect (HTTP response code 302) and adds the domain name itself from the original POST. TestMaker scripts must use the http_protocol_handler.connect(1) form to follow redirects. Recorded scripts do not automatically add the (1) parameter. Thanks to Aaron Romeo, Dominique de Waleffe, and Kevin Dyer for participating in developing the solution. # TestMaker.sh and TestMaker.bat are start-up shell scripts for TestMaker on Unix/Linux and Windows operating systems. These scripts build a classpath for TestMaker. Previous versions used external scripts in the util directory to build the complete classpath. On Windows NT and 2000 operating systems this caused exceptions. TestMaker 4.4.1 builds the classpath in the TestMaker.bat and TestMaker.sh scripts directly. Thanks to Aaron Romeo for pointing out the problems and recommending a solution. # Scripts using TestMaker_home/lib/agentbase.py would throw a NullPointerException if there were no return parameters in a GET or POST command. Thanks to Todd Bradfute for a patch that solves this problem. # Scripts using agentbase.py to check links to image tags would throw a "Has no attribute 'handler'" exception when an exception was encountered. Thanks to Todd Bradfute for a patch that solves this problem. Please let us know if we missed a proposed fix or change. We are shooting for the end of next week to have the new release available. -Frank From fcohen at pushtotest.com Fri Dec 8 23:54:55 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Sat Dec 9 13:20:07 2006 Subject: [ptt-users] omission in post parameters In-Reply-To: References: Message-ID: Set the body of the HTTPProtocolHandler to the contents of your XML and then make a POST connection. We're researching now ways to support AJAX and REST style calls better. Any ideas on how to improve TestMaker along these lines would be appreciated, and timely. -Frank On Dec 1, 2006, at 10:58 AM, Geoff Meakin wrote: > Hi, > > I have just read the w3c recs and spec, and note that basically you > can POST what you like as part of a POST request, but what is legal > depends on the Content-Type header declaration. > > Therefore for a application/x-www-form-urlencoded they do indeed > have to be key/value pairs, encoded properly. > > Therefore in this respect my application under test breaks the w3c > recs (nice) > > However, we are now modifying the Content-Type to text/xml, which > allows you to POST just xml. > > How would I do this in testmaker please? > > I.e. come up with something that looks like this: > > POST /url HTTP/1.1 > Host: foo.bar.com > Content-Type: text/xml > ..... more headers ..... > > > > > Thanks > -Geoff > > > > -----Original Message----- > From: users-bounces@lists.pushtotest.com on behalf of > Mark.Lutton@thomson.com > Sent: Thu 30/11/2006 18:55 > To: users@lists.pushtotest.com > Subject: FW: [ptt-users] omission in post parameters > > I don't think it is meaningful to have a single value without a > key. Here is an example of a POST request, which I got from http:// > www.jmarshall.com/easy/html/ : > > POST /path/script.cgi HTTP/1.0 > From: frog@jmarshall.com > User-Agent: HTTPTool/1.0 > Content-Type: application/x-www-form-urlencoded > Content-Length: 32 > > home=Cosby&favorite+flavor=flies > > You could also do this in the URL by putting the parameters into > the query: > > http://hostname.com/path/script.cgi?home=Cosby&favorite+flavor=flies > > But I don't know what the following means: > > http://hostname.com/path/script.cgi?Cosby > > Likewise: > > POST /path/script.cgi HTTP/1.0 > From: frog@jmarshall.com > User-Agent: HTTPTool/1.0 > Content-Type: application/x-www-form-urlencoded > Content-Length: 5 > > Cosby > > > In both cases Cosby looks like the key, not the value. On the > server side, what would ServletRequest.getParameterMap() return? > > A parameter value can be an array of strings; a single string is > equivalent to an array containing one string. Is this what you are > thinking of? I don't know the syntax for an array of values but I > guess it would be like this: > > self.params=[ [ '''key''', [ '''value1''', '''value2''', > '''value3''' ] ] ] > > So the following two would be equivalent: > > self.params= [ [ '''key''', [ '''value''' ] ] ] > > self.params= [ [ '''key''', '''value''' ] ] > > > Mark Lutton > Business Intelligence Services, a Thomson Business > > > ________________________________ > > From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin > Sent: Thu 11/30/2006 12:59 PM > To: TestMaker users list > Subject: [ptt-users] omission in post parameters > > > > Hi all, > > Does anyone know how to post a singleton parameter > > Normally: > > self.params= [ [ '''key''', '''value''' ] ] > self.post(url) > > However it should be possibly to also post: > > self.params= [ [ '''value''' ] ] > self.post(url) > > but doing this leads to an index out of bounds. > > I've checked HTTPBody.java and it DOES NOT have a method: > addParameter(String value) > > If anyone can help with how to do this, it would be gratefully > appreciated! > Or indeed any other thoughts... am a bit stuck out here! > > Cheers > -Geoff > > > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Kyle Bell > Sent: 30 November 2006 15:40 > To: TestMaker users list > Subject: Re: [ptt-users] TestMaker 5 completion specification > > Frank, > > I know you were looking for some example code associated with SIP > enabled instant messaging clients. Follow the link below and click on > the Sip Communicator. This is a NIST sponsored IM and telephony > client. > > http://snad.ncsl.nist.gov/proj/iptel/ > > Regards, > > -Kyle > > On Wed, 2006-11-29 at 08:03 -0800, Frank Cohen wrote: > > That explains it. :-( Oh well. Thanks for finding this. I'll see > what > > > I can do when I write the TM 5 build scripts. Maybe I'll write my > own > > > zip handler. -Frank > > > > > > On Nov 29, 2006, at 7:42 AM, Kyle Bell wrote: > > > > > Frank, > > > > > > I found this tidbit from the ant user manual -> core tasks -> zip: > > > > > > Starting with Ant 1.5.2, can store Unix permissions > inside the > > > archive (see description of the filemode and dirmode attributes > for > > > ). Unfortunately there is no portable way to store > these > > > permissions. Ant uses the algorithm used by Info-Zip's > > > implementation of > > > the zip and unzip commands - these are the default versions of zip > and > > > unzip for many Unix and Unix-like systems. > > > > > > > > > Please note that the zip format allows multiple files of the same > > > fully- > > > qualified name to exist within a single archive. This has been > > > documented as causing various problems for unsuspecting users. If > you > > > wish to avoid this behavior you must set the duplicate > attribute to > a > > > value other than its default, "add". > > > > > > This likely explains your issue. The options available for the > > > duplicate attribute are as follows: > > > > > > duplicate -> behavior when a duplicate file is found. Valid values > are > > > "add", "preserve", and "fail". The default value is "add". > > > > > > In your zip task you may try specifying "preserve" as the value > rather > > > than the default of "add" and see where that takes you... > > > > > > Hope this helps... > > > > > > -Kyle > > > > > > > > > > > > On Mon, 2006-11-27 at 10:52 -0800, Frank Cohen wrote: > > >> Hi Kyle: Thanks for the feedback. See below. -Frank > > >> On Nov 27, 2006, at 9:41 AM, Kyle Bell wrote: > > >> > > >>> Frank, > > >>> > > >>> Nice feature list. I especially appreciate the first new > feature > > > >>> idea > > >>> by Bongos Amigos. I've not spent any time finding a good use > for > > >>> those > > >>> generated XML files and this would make them immediately > useful... > > >> > > >> Attached is an example TestScenario XML file. I'd love > feedback on > > > >> it. > > >> > > >>> Another enhancement or bug as it may be seen that I'd like to > see > > >>> addressed is the ability to kill a running TestCase from the > > >>> TestMaker > > >>> IDE which is not being controlled by XSTest. If a test case is > > >>> running > > >>> within the browser (perhaps it was written to run in an infinite > > >>> loop > > >>> correctly or by accident), I've not found a way to kill this > running > > >>> process as the "stop the agent" button appears not to be > effective. > > >> > > >> Interesting. When you click the stop button TestMaker kills the > > >> thread running the script. That's not a very nice way to do > it, but > > >> it's something necessary. I suppose another way would be to > have a > > >> signal to the running test case to stop. I'll give this some > thought. > > >> Thanks for making me aware of the problem. > > >> > > >> > > >> > > >>> Also, could I get you to make a small change to your ANT script > > >>> which > > >>> packages your distribution? I had previously suggested (and you > > >>> implemented) a change to make the permissions 755 on > TestMaker.sh > > > >>> when > > >>> you perform your packaging. Could I talk you into doing the > same > > > >>> with > > >>> TestMaker.bat? I also run TestMaker in some Windows systems > and I > > >>> find > > >>> myself doing this within a cygwin environment as well. Cygwin > > >>> requires > > >>> executable permissions on batch files for execution purposes and > > >>> this > > >>> would prevent the step of changing permissions for other > TestMaker > > >>> users > > >>> running in this environment. > > >> > > >> I'm ok with making that change. > > >> > > >> Maybe you can help me with a different problem. The way the > build.xml > > >> script is written now, the .sh files are correctly set with > the 755 > > >> permissions, but the resulting Zip file has two copies of the .sh > > >> files. It's totally weird to me to see WinZip on Windows ask > if it > > >> can overwrite the .sh files. Any idea what I'm doing wrong? > > >> > > >> > > >>> > > >>> Since you included my suggestion for a SIP UAC/UAS I now wish I > had > > >>> edited it a little more closely... :o) I'm unsure how you plan > to > > >>> implement this feature in a single day (I rather thought > there was > > >>> more > > >>> than a days work there) but kudos if you can accomplish it. > I'll > be > > >>> working this week on a piece of code to handle new connection > > >>> requests > > >>> on a UAS. If you are interested in the code once I get it > polished, > > >>> I'll happily hand it over. I borrowed the design idea from > Simon > > >>> Foster's "Forwarding and Redirecting Network Ports" section > 13.13 > > >>> of the > > >>> "Python Cookbook", O'Reilly publishing. > > >> > > >> All the days are just estimates right now. I'm meeting with the > > >> engineers this week to get their estimate. Please send me the > code > > >> you create. I'd love to see your approach. > > >> > > >>> > > >>> In the future, you may also use your recorder on SIP > messaging by > > >>> redirecting your instant messenger to TestMaker as a proxy. > This > > >>> kinda > > >>> opens up a whole new realm of possibilities here as well... > > >> > > >> Totally agree with you on this. The proxy would easily > extended to > > >> record SIP sessions and create test cases. > > >> > > >>> > > >>> Thanks for the terrific work, Frank. If I come up with more > > >>> commentary, > > >>> I'll pass it along. > > >>> > > >>> -Kyle > > >>> > > >>> > > >>> On Wed, 2006-11-22 at 17:08 -0800, Frank Cohen wrote: > > >>>> Work on TestMaker 5 continues. I wrote up a specification of > the > > >>>> remaining projects to complete. I expect PushToTest will > fund the > > >>>> development of the projects in this specification. I would love > to > > >>>> hear your feedback, suggestions, and prioritization. > > >>>> > > >>>> Download the TestMaker 5 completion specification document at: > > >>>> http://downloads.pushtotest.com/tm5/TM5_Specification.pdf > > >>>> > > >>>> The document is 444K in Adobe Acrobat format. Please post your > > >>>> feedback to this list. > > >>>> > > >>>> Thanks. > > >>>> > > >>>> -Frank > > >>>> > > >>>> -- > > >>>> Frank Cohen, PushToTest, http://www.PushToTest.com, phone > 408 374 > > >>>> 7426 > > >>>> Enterprise test automation solutions to check and monitor Web- > > >>>> enabled > > >>>> applications for functionality, scalability and reliability. > > >>>> > > >>>> > > >>>> > > >>>> _______________________________________________ > > >>>> 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 > > > > _______________________________________________ > 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 fcohen at pushtotest.com Sat Dec 9 00:00:24 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Sat Dec 9 13:20:11 2006 Subject: [ptt-users] Connection close question Message-ID: I might have already asked this, but please vote on this: The HTTPProtocolHandler.java in TestMaker returns an empty response value if the response header meets these conditions: 1) The connection=close header 2) There is connection content length header is present and greater than zero 3) The response is chunked content I'm seeing more and more Web sites that do not return a content length header. Please vote on my proposal to modify the HTTPProtocolHandler.java to always get the response content, even if the content length is missing. -Frank From geoffm at gamesys.co.uk Sun Dec 10 17:07:56 2006 From: geoffm at gamesys.co.uk (Geoff Meakin) Date: Sun Dec 10 18:06:33 2006 Subject: [ptt-users] omission in post parameters Message-ID: Hi Frank, Not sure if you saw my reply to this email it went to your other mail list-- because it was too big for the regular one. It included all the code I changed to support posting values only, and also setting any content types. Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com on behalf of Frank Cohen Sent: Sat 09/12/2006 07:54 To: TestMaker users list Subject: Re: [ptt-users] omission in post parameters Set the body of the HTTPProtocolHandler to the contents of your XML and then make a POST connection. We're researching now ways to support AJAX and REST style calls better. Any ideas on how to improve TestMaker along these lines would be appreciated, and timely. -Frank On Dec 1, 2006, at 10:58 AM, Geoff Meakin wrote: > Hi, > > I have just read the w3c recs and spec, and note that basically you > can POST what you like as part of a POST request, but what is legal > depends on the Content-Type header declaration. > > Therefore for a application/x-www-form-urlencoded they do indeed > have to be key/value pairs, encoded properly. > > Therefore in this respect my application under test breaks the w3c > recs (nice) > > However, we are now modifying the Content-Type to text/xml, which > allows you to POST just xml. > > How would I do this in testmaker please? > > I.e. come up with something that looks like this: > > POST /url HTTP/1.1 > Host: foo.bar.com > Content-Type: text/xml > ..... more headers ..... > > > > > Thanks > -Geoff > > > > -----Original Message----- > From: users-bounces@lists.pushtotest.com on behalf of > Mark.Lutton@thomson.com > Sent: Thu 30/11/2006 18:55 > To: users@lists.pushtotest.com > Subject: FW: [ptt-users] omission in post parameters > > I don't think it is meaningful to have a single value without a > key. Here is an example of a POST request, which I got from http:// > www.jmarshall.com/easy/html/ : > > POST /path/script.cgi HTTP/1.0 > From: frog@jmarshall.com > User-Agent: HTTPTool/1.0 > Content-Type: application/x-www-form-urlencoded > Content-Length: 32 > > home=Cosby&favorite+flavor=flies > > You could also do this in the URL by putting the parameters into > the query: > > http://hostname.com/path/script.cgi?home=Cosby&favorite+flavor=flies > > But I don't know what the following means: > > http://hostname.com/path/script.cgi?Cosby > > Likewise: > > POST /path/script.cgi HTTP/1.0 > From: frog@jmarshall.com > User-Agent: HTTPTool/1.0 > Content-Type: application/x-www-form-urlencoded > Content-Length: 5 > > Cosby > > > In both cases Cosby looks like the key, not the value. On the > server side, what would ServletRequest.getParameterMap() return? > > A parameter value can be an array of strings; a single string is > equivalent to an array containing one string. Is this what you are > thinking of? I don't know the syntax for an array of values but I > guess it would be like this: > > self.params=[ [ '''key''', [ '''value1''', '''value2''', > '''value3''' ] ] ] > > So the following two would be equivalent: > > self.params= [ [ '''key''', [ '''value''' ] ] ] > > self.params= [ [ '''key''', '''value''' ] ] > > > Mark Lutton > Business Intelligence Services, a Thomson Business > > > ________________________________ > > From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin > Sent: Thu 11/30/2006 12:59 PM > To: TestMaker users list > Subject: [ptt-users] omission in post parameters > > > > Hi all, > > Does anyone know how to post a singleton parameter > > Normally: > > self.params= [ [ '''key''', '''value''' ] ] > self.post(url) > > However it should be possibly to also post: > > self.params= [ [ '''value''' ] ] > self.post(url) > > but doing this leads to an index out of bounds. > > I've checked HTTPBody.java and it DOES NOT have a method: > addParameter(String value) > > If anyone can help with how to do this, it would be gratefully > appreciated! > Or indeed any other thoughts... am a bit stuck out here! > > Cheers > -Geoff > > > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Kyle Bell > Sent: 30 November 2006 15:40 > To: TestMaker users list > Subject: Re: [ptt-users] TestMaker 5 completion specification > > Frank, > > I know you were looking for some example code associated with SIP > enabled instant messaging clients. Follow the link below and click on > the Sip Communicator. This is a NIST sponsored IM and telephony > client. > > http://snad.ncsl.nist.gov/proj/iptel/ > > Regards, > > -Kyle > > On Wed, 2006-11-29 at 08:03 -0800, Frank Cohen wrote: > > That explains it. :-( Oh well. Thanks for finding this. I'll see > what > > > I can do when I write the TM 5 build scripts. Maybe I'll write my > own > > > zip handler. -Frank > > > > > > On Nov 29, 2006, at 7:42 AM, Kyle Bell wrote: > > > > > Frank, > > > > > > I found this tidbit from the ant user manual -> core tasks -> zip: > > > > > > Starting with Ant 1.5.2, can store Unix permissions > inside the > > > archive (see description of the filemode and dirmode attributes > for > > > ). Unfortunately there is no portable way to store > these > > > permissions. Ant uses the algorithm used by Info-Zip's > > > implementation of > > > the zip and unzip commands - these are the default versions of zip > and > > > unzip for many Unix and Unix-like systems. > > > > > > > > > Please note that the zip format allows multiple files of the same > > > fully- > > > qualified name to exist within a single archive. This has been > > > documented as causing various problems for unsuspecting users. If > you > > > wish to avoid this behavior you must set the duplicate > attribute to > a > > > value other than its default, "add". > > > > > > This likely explains your issue. The options available for the > > > duplicate attribute are as follows: > > > > > > duplicate -> behavior when a duplicate file is found. Valid values > are > > > "add", "preserve", and "fail". The default value is "add". > > > > > > In your zip task you may try specifying "preserve" as the value > rather > > > than the default of "add" and see where that takes you... > > > > > > Hope this helps... > > > > > > -Kyle > > > > > > > > > > > > On Mon, 2006-11-27 at 10:52 -0800, Frank Cohen wrote: > > >> Hi Kyle: Thanks for the feedback. See below. -Frank > > >> On Nov 27, 2006, at 9:41 AM, Kyle Bell wrote: > > >> > > >>> Frank, > > >>> > > >>> Nice feature list. I especially appreciate the first new > feature > > > >>> idea > > >>> by Bongos Amigos. I've not spent any time finding a good use > for > > >>> those > > >>> generated XML files and this would make them immediately > useful... > > >> > > >> Attached is an example TestScenario XML file. I'd love > feedback on > > > >> it. > > >> > > >>> Another enhancement or bug as it may be seen that I'd like to > see > > >>> addressed is the ability to kill a running TestCase from the > > >>> TestMaker > > >>> IDE which is not being controlled by XSTest. If a test case is > > >>> running > > >>> within the browser (perhaps it was written to run in an infinite > > >>> loop > > >>> correctly or by accident), I've not found a way to kill this > running > > >>> process as the "stop the agent" button appears not to be > effective. > > >> > > >> Interesting. When you click the stop button TestMaker kills the > > >> thread running the script. That's not a very nice way to do > it, but > > >> it's something necessary. I suppose another way would be to > have a > > >> signal to the running test case to stop. I'll give this some > thought. > > >> Thanks for making me aware of the problem. > > >> > > >> > > >> > > >>> Also, could I get you to make a small change to your ANT script > > >>> which > > >>> packages your distribution? I had previously suggested (and you > > >>> implemented) a change to make the permissions 755 on > TestMaker.sh > > > >>> when > > >>> you perform your packaging. Could I talk you into doing the > same > > > >>> with > > >>> TestMaker.bat? I also run TestMaker in some Windows systems > and I > > >>> find > > >>> myself doing this within a cygwin environment as well. Cygwin > > >>> requires > > >>> executable permissions on batch files for execution purposes and > > >>> this > > >>> would prevent the step of changing permissions for other > TestMaker > > >>> users > > >>> running in this environment. > > >> > > >> I'm ok with making that change. > > >> > > >> Maybe you can help me with a different problem. The way the > build.xml > > >> script is written now, the .sh files are correctly set with > the 755 > > >> permissions, but the resulting Zip file has two copies of the .sh > > >> files. It's totally weird to me to see WinZip on Windows ask > if it > > >> can overwrite the .sh files. Any idea what I'm doing wrong? > > >> > > >> > > >>> > > >>> Since you included my suggestion for a SIP UAC/UAS I now wish I > had > > >>> edited it a little more closely... :o) I'm unsure how you plan > to > > >>> implement this feature in a single day (I rather thought > there was > > >>> more > > >>> than a days work there) but kudos if you can accomplish it. > I'll > be > > >>> working this week on a piece of code to handle new connection > > >>> requests > > >>> on a UAS. If you are interested in the code once I get it > polished, > > >>> I'll happily hand it over. I borrowed the design idea from > Simon > > >>> Foster's "Forwarding and Redirecting Network Ports" section > 13.13 > > >>> of the > > >>> "Python Cookbook", O'Reilly publishing. > > >> > > >> All the days are just estimates right now. I'm meeting with the > > >> engineers this week to get their estimate. Please send me the > code > > >> you create. I'd love to see your approach. > > >> > > >>> > > >>> In the future, you may also use your recorder on SIP > messaging by > > >>> redirecting your instant messenger to TestMaker as a proxy. > This > > >>> kinda > > >>> opens up a whole new realm of possibilities here as well... > > >> > > >> Totally agree with you on this. The proxy would easily > extended to > > >> record SIP sessions and create test cases. > > >> > > >>> > > >>> Thanks for the terrific work, Frank. If I come up with more > > >>> commentary, > > >>> I'll pass it along. > > >>> > > >>> -Kyle > > >>> > > >>> > > >>> On Wed, 2006-11-22 at 17:08 -0800, Frank Cohen wrote: > > >>>> Work on TestMaker 5 continues. I wrote up a specification of > the > > >>>> remaining projects to complete. I expect PushToTest will > fund the > > >>>> development of the projects in this specification. I would love > to > > >>>> hear your feedback, suggestions, and prioritization. > > >>>> > > >>>> Download the TestMaker 5 completion specification document at: > > >>>> http://downloads.pushtotest.com/tm5/TM5_Specification.pdf > > >>>> > > >>>> The document is 444K in Adobe Acrobat format. Please post your > > >>>> feedback to this list. > > >>>> > > >>>> Thanks. > > >>>> > > >>>> -Frank > > >>>> > > >>>> -- > > >>>> Frank Cohen, PushToTest, http://www.PushToTest.com, phone > 408 374 > > >>>> 7426 > > >>>> Enterprise test automation solutions to check and monitor Web- > > >>>> enabled > > >>>> applications for functionality, scalability and reliability. > > >>>> > > >>>> > > >>>> > > >>>> _______________________________________________ > > >>>> 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 > > > > _______________________________________________ > 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 8693 bytes Desc: not available Url : http://cake.pushtotest.com/pipermail/users/attachments/20061211/73d3d060/attachment-0001.bin From fcohen at pushtotest.com Mon Dec 11 05:32:18 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Mon Dec 11 06:29:50 2006 Subject: [ptt-users] omission in post parameters In-Reply-To: References: Message-ID: <9101382D-E7F7-439D-8972-CBAE61DA8DB6@pushtotest.com> Thanks Geoff. I didn't see it but now I have your files and it looks good. I appreciate your support. -Frank On Dec 11, 2006, at 2:07 AM, Geoff Meakin wrote: > Hi Frank, > > Not sure if you saw my reply to this email it went to your other > mail list-- because it was too big for the regular one. > > It included all the code I changed to support posting values only, > and also setting any content types. > > Cheers > -Geoff > > > > -----Original Message----- > From: users-bounces@lists.pushtotest.com on behalf of Frank Cohen > Sent: Sat 09/12/2006 07:54 > To: TestMaker users list > Subject: Re: [ptt-users] omission in post parameters > > Set the body of the HTTPProtocolHandler to the contents of your XML > and then make a POST connection. > > We're researching now ways to support AJAX and REST style calls > better. Any ideas on how to improve TestMaker along these lines would > be appreciated, and timely. > > -Frank > > > > > On Dec 1, 2006, at 10:58 AM, Geoff Meakin wrote: > >> Hi, >> >> I have just read the w3c recs and spec, and note that basically you >> can POST what you like as part of a POST request, but what is legal >> depends on the Content-Type header declaration. >> >> Therefore for a application/x-www-form-urlencoded they do indeed >> have to be key/value pairs, encoded properly. >> >> Therefore in this respect my application under test breaks the w3c >> recs (nice) >> >> However, we are now modifying the Content-Type to text/xml, which >> allows you to POST just xml. >> >> How would I do this in testmaker please? >> >> I.e. come up with something that looks like this: >> >> POST /url HTTP/1.1 >> Host: foo.bar.com >> Content-Type: text/xml >> ..... more headers ..... >> >> >> >> >> Thanks >> -Geoff >> >> >> >> -----Original Message----- >> From: users-bounces@lists.pushtotest.com on behalf of >> Mark.Lutton@thomson.com >> Sent: Thu 30/11/2006 18:55 >> To: users@lists.pushtotest.com >> Subject: FW: [ptt-users] omission in post parameters >> >> I don't think it is meaningful to have a single value without a >> key. Here is an example of a POST request, which I got from http:// >> www.jmarshall.com/easy/html/ : >> >> POST /path/script.cgi HTTP/1.0 >> From: frog@jmarshall.com >> User-Agent: HTTPTool/1.0 >> Content-Type: application/x-www-form-urlencoded >> Content-Length: 32 >> >> home=Cosby&favorite+flavor=flies >> >> You could also do this in the URL by putting the parameters into >> the query: >> >> http://hostname.com/path/script.cgi?home=Cosby&favorite >> +flavor=flies >> >> But I don't know what the following means: >> >> http://hostname.com/path/script.cgi?Cosby >> >> Likewise: >> >> POST /path/script.cgi HTTP/1.0 >> From: frog@jmarshall.com >> User-Agent: HTTPTool/1.0 >> Content-Type: application/x-www-form-urlencoded >> Content-Length: 5 >> >> Cosby >> >> >> In both cases Cosby looks like the key, not the value. On the >> server side, what would ServletRequest.getParameterMap() return? >> >> A parameter value can be an array of strings; a single string is >> equivalent to an array containing one string. Is this what you are >> thinking of? I don't know the syntax for an array of values but I >> guess it would be like this: >> >> self.params=[ [ '''key''', [ '''value1''', '''value2''', >> '''value3''' ] ] ] >> >> So the following two would be equivalent: >> >> self.params= [ [ '''key''', [ '''value''' ] ] ] >> >> self.params= [ [ '''key''', '''value''' ] ] >> >> >> Mark Lutton >> Business Intelligence Services, a Thomson Business >> >> >> ________________________________ >> >> From: users-bounces@lists.pushtotest.com on behalf of Geoff Meakin >> Sent: Thu 11/30/2006 12:59 PM >> To: TestMaker users list >> Subject: [ptt-users] omission in post parameters >> >> >> >> Hi all, >> >> Does anyone know how to post a singleton parameter >> >> Normally: >> >> self.params= [ [ '''key''', '''value''' ] ] >> self.post(url) >> >> However it should be possibly to also post: >> >> self.params= [ [ '''value''' ] ] >> self.post(url) >> >> but doing this leads to an index out of bounds. >> >> I've checked HTTPBody.java and it DOES NOT have a method: >> addParameter(String value) >> >> If anyone can help with how to do this, it would be gratefully >> appreciated! >> Or indeed any other thoughts... am a bit stuck out here! >> >> Cheers >> -Geoff >> >> >> >> -----Original Message----- >> From: users-bounces@lists.pushtotest.com >> [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Kyle Bell >> Sent: 30 November 2006 15:40 >> To: TestMaker users list >> Subject: Re: [ptt-users] TestMaker 5 completion specification >> >> Frank, >> >> I know you were looking for some example code associated with SIP >> enabled instant messaging clients. Follow the link below and >> click on >> the Sip Communicator. This is a NIST sponsored IM and telephony >> client. >> >> http://snad.ncsl.nist.gov/proj/iptel/ >> >> Regards, >> >> -Kyle >> >> On Wed, 2006-11-29 at 08:03 -0800, Frank Cohen wrote: >>> That explains it. :-( Oh well. Thanks for finding this. I'll see >> what >> >>> I can do when I write the TM 5 build scripts. Maybe I'll write my >> own >> >>> zip handler. -Frank >>> >>> >>> On Nov 29, 2006, at 7:42 AM, Kyle Bell wrote: >>> >>>> Frank, >>>> >>>> I found this tidbit from the ant user manual -> core tasks -> zip: >>>> >>>> Starting with Ant 1.5.2, can store Unix permissions >> inside the >>>> archive (see description of the filemode and dirmode attributes >> for >>>> ). Unfortunately there is no portable way to store >> these >>>> permissions. Ant uses the algorithm used by Info-Zip's >>>> implementation of >>>> the zip and unzip commands - these are the default versions of zip >> and >>>> unzip for many Unix and Unix-like systems. >>>> >>>> >>>> Please note that the zip format allows multiple files of the same >>>> fully- >>>> qualified name to exist within a single archive. This has been >>>> documented as causing various problems for unsuspecting users. If >> you >>>> wish to avoid this behavior you must set the duplicate >> attribute to >> a >>>> value other than its default, "add". >>>> >>>> This likely explains your issue. The options available for the >>>> duplicate attribute are as follows: >>>> >>>> duplicate -> behavior when a duplicate file is found. Valid values >> are >>>> "add", "preserve", and "fail". The default value is "add". >>>> >>>> In your zip task you may try specifying "preserve" as the value >> rather >>>> than the default of "add" and see where that takes you... >>>> >>>> Hope this helps... >>>> >>>> -Kyle >>>> >>>> >>>> >>>> On Mon, 2006-11-27 at 10:52 -0800, Frank Cohen wrote: >>>>> Hi Kyle: Thanks for the feedback. See below. -Frank >>>>> On Nov 27, 2006, at 9:41 AM, Kyle Bell wrote: >>>>> >>>>>> Frank, >>>>>> >>>>>> Nice feature list. I especially appreciate the first new >> feature >> >>>>>> idea >>>>>> by Bongos Amigos. I've not spent any time finding a good use >> for >>>>>> those >>>>>> generated XML files and this would make them immediately >> useful... >>>>> >>>>> Attached is an example TestScenario XML file. I'd love >> feedback on >> >>>>> it. >>>>> >>>>>> Another enhancement or bug as it may be seen that I'd like to >> see >>>>>> addressed is the ability to kill a running TestCase from the >>>>>> TestMaker >>>>>> IDE which is not being controlled by XSTest. If a test case is >>>>>> running >>>>>> within the browser (perhaps it was written to run in an infinite >>>>>> loop >>>>>> correctly or by accident), I've not found a way to kill this >> running >>>>>> process as the "stop the agent" button appears not to be >> effective. >>>>> >>>>> Interesting. When you click the stop button TestMaker kills the >>>>> thread running the script. That's not a very nice way to do >> it, but >>>>> it's something necessary. I suppose another way would be to >> have a >>>>> signal to the running test case to stop. I'll give this some >> thought. >>>>> Thanks for making me aware of the problem. >>>>> >>>>> >>>>> >>>>>> Also, could I get you to make a small change to your ANT script >>>>>> which >>>>>> packages your distribution? I had previously suggested (and you >>>>>> implemented) a change to make the permissions 755 on >> TestMaker.sh >> >>>>>> when >>>>>> you perform your packaging. Could I talk you into doing the >> same >> >>>>>> with >>>>>> TestMaker.bat? I also run TestMaker in some Windows systems >> and I >>>>>> find >>>>>> myself doing this within a cygwin environment as well. Cygwin >>>>>> requires >>>>>> executable permissions on batch files for execution purposes and >>>>>> this >>>>>> would prevent the step of changing permissions for other >> TestMaker >>>>>> users >>>>>> running in this environment. >>>>> >>>>> I'm ok with making that change. >>>>> >>>>> Maybe you can help me with a different problem. The way the >> build.xml >>>>> script is written now, the .sh files are correctly set with >> the 755 >>>>> permissions, but the resulting Zip file has two copies of the .sh >>>>> files. It's totally weird to me to see WinZip on Windows ask >> if it >>>>> can overwrite the .sh files. Any idea what I'm doing wrong? >>>>> >>>>> >>>>>> >>>>>> Since you included my suggestion for a SIP UAC/UAS I now wish I >> had >>>>>> edited it a little more closely... :o) I'm unsure how you plan >> to >>>>>> implement this feature in a single day (I rather thought >> there was >>>>>> more >>>>>> than a days work there) but kudos if you can accomplish it. >> I'll >> be >>>>>> working this week on a piece of code to handle new connection >>>>>> requests >>>>>> on a UAS. If you are interested in the code once I get it >> polished, >>>>>> I'll happily hand it over. I borrowed the design idea from >> Simon >>>>>> Foster's "Forwarding and Redirecting Network Ports" section >> 13.13 >>>>>> of the >>>>>> "Python Cookbook", O'Reilly publishing. >>>>> >>>>> All the days are just estimates right now. I'm meeting with the >>>>> engineers this week to get their estimate. Please send me the >> code >>>>> you create. I'd love to see your approach. >>>>> >>>>>> >>>>>> In the future, you may also use your recorder on SIP >> messaging by >>>>>> redirecting your instant messenger to TestMaker as a proxy. >> This >>>>>> kinda >>>>>> opens up a whole new realm of possibilities here as well... >>>>> >>>>> Totally agree with you on this. The proxy would easily >> extended to >>>>> record SIP sessions and create test cases. >>>>> >>>>>> >>>>>> Thanks for the terrific work, Frank. If I come up with more >>>>>> commentary, >>>>>> I'll pass it along. >>>>>> >>>>>> -Kyle >>>>>> >>>>>> >>>>>> On Wed, 2006-11-22 at 17:08 -0800, Frank Cohen wrote: >>>>>>> Work on TestMaker 5 continues. I wrote up a specification of >> the >>>>>>> remaining projects to complete. I expect PushToTest will >> fund the >>>>>>> development of the projects in this specification. I would love >> to >>>>>>> hear your feedback, suggestions, and prioritization. >>>>>>> >>>>>>> Download the TestMaker 5 completion specification document at: >>>>>>> http://downloads.pushtotest.com/tm5/TM5_Specification.pdf >>>>>>> >>>>>>> The document is 444K in Adobe Acrobat format. Please post your >>>>>>> feedback to this list. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> -Frank >>>>>>> >>>>>>> -- >>>>>>> Frank Cohen, PushToTest, http://www.PushToTest.com, phone >> 408 374 >>>>>>> 7426 >>>>>>> Enterprise test automation solutions to check and monitor Web- >>>>>>> enabled >>>>>>> applications for functionality, scalability and reliability. >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>> >> >> _______________________________________________ >> 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 > > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users From aaron.romeo at artez.com Mon Dec 11 06:30:44 2006 From: aaron.romeo at artez.com (Aaron Romeo) Date: Mon Dec 11 07:28:18 2006 Subject: [ptt-users] Connection close question Message-ID: <448E1FA789024B42BAE0BAC496FAA29001100F71@mail10.artez.com> Frank, This issue hasn't yet affected my testing. If this change is only reflected in 5, I'm fine with that. Thanks, Aaron. -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen Sent: Saturday, December 09, 2006 3:00 AM To: TestMaker users list Subject: [ptt-users] Connection close question I might have already asked this, but please vote on this: The HTTPProtocolHandler.java in TestMaker returns an empty response value if the response header meets these conditions: 1) The connection=close header 2) There is connection content length header is present and greater than zero 3) The response is chunked content I'm seeing more and more Web sites that do not return a content length header. Please vote on my proposal to modify the HTTPProtocolHandler.java to always get the response content, even if the content length is missing. -Frank _______________________________________________ Users mailing list Users@lists.pushtotest.com http://lists.pushtotest.com/mailman/listinfo/users From kylebell at tango-networks.com Mon Dec 11 06:52:20 2006 From: kylebell at tango-networks.com (Kyle Bell) Date: Mon Dec 11 07:49:52 2006 Subject: [ptt-users] Connection close question In-Reply-To: <448E1FA789024B42BAE0BAC496FAA29001100F71@mail10.artez.com> References: <448E1FA789024B42BAE0BAC496FAA29001100F71@mail10.artez.com> Message-ID: <1165848740.7852.179.camel@kbell-1.tango-networks.com> Frank, I'll side with Aaron. -Kyle On Mon, 2006-12-11 at 09:30 -0500, Aaron Romeo wrote: > Frank, > > This issue hasn't yet affected my testing. > > If this change is only reflected in 5, I'm fine with that. > > Thanks, > Aaron. > > -----Original Message----- > From: users-bounces@lists.pushtotest.com > [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen > Sent: Saturday, December 09, 2006 3:00 AM > To: TestMaker users list > Subject: [ptt-users] Connection close question > > I might have already asked this, but please vote on this: > > The HTTPProtocolHandler.java in TestMaker returns an empty response > value if the response header meets these conditions: > > 1) The connection=close header > 2) There is connection content length header is present and greater > than zero > 3) The response is chunked content > > I'm seeing more and more Web sites that do not return a content > length header. Please vote on my proposal to modify the > HTTPProtocolHandler.java to always get the response content, even if > the content length is missing. > > -Frank > > _______________________________________________ > 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 geoffm at gamesys.co.uk Mon Dec 11 08:04:19 2006 From: geoffm at gamesys.co.uk (Geoff Meakin) Date: Mon Dec 11 09:02:11 2006 Subject: [ptt-users] Slowness and crashing of recorder Message-ID: Hi, I have noticed that the recorder proxy is extremely slow and in some case waits for ever in record mode through recording some of our websites- I have tried versions 4.3 4.4 and 4.0 and all the same, I am going to attempt to get to the bottom of this issue, however any pointers would be appreciated. Thanks -Geoff From fcohen at pushtotest.com Mon Dec 11 14:42:47 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Mon Dec 11 15:40:50 2006 Subject: [ptt-users] Slowness and crashing of recorder In-Reply-To: References: Message-ID: <989866B4-F0D2-434E-81ED-43F8361FBDD1@pushtotest.com> Hi Geoff: If you check the source you will find debug switches that output status to the output panel as the Recorder is handling the browser traffic to the host. This helps me when debugging problems. - Frank On Dec 11, 2006, at 5:04 PM, Geoff Meakin wrote: > Hi, > > I have noticed that the recorder proxy is extremely slow and in some > case waits for ever in record mode through recording some of our > websites- > > I have tried versions 4.3 4.4 and 4.0 and all the same, > > I am going to attempt to get to the bottom of this issue, however any > pointers would be appreciated. > > Thanks > -Geoff > > _______________________________________________ > Users mailing list > Users@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/users > From geoffm at gamesys.co.uk Tue Dec 12 06:26:00 2006 From: geoffm at gamesys.co.uk (Geoff Meakin) Date: Tue Dec 12 07:24:06 2006 Subject: [ptt-users] omission in post parameters Message-ID: Oops I forgot a line in HTTPProtocol.java ! if (type == POST) { con.setDoOutput( true ); // pablo.chacin@ctp.com Nov. 26, 2003 noticed that the code did not actually // set the request method to 'post' con.setRequestMethod("POST"); >> body.addHeaders(con); Cheers -Geoff -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen Sent: 11 December 2006 13:32 To: TestMaker users list Subject: Re: [ptt-users] omission in post parameters Thanks Geoff. I didn't see it but now I have your files and it looks good. I appreciate your support. -Frank From prabhat.jha at jboss.com Tue Dec 12 14:46:36 2006 From: prabhat.jha at jboss.com (Prabhat Jha) Date: Tue Dec 12 15:44:43 2006 Subject: [ptt-users] jboss and XS Test Message-ID: Hi Frank, I was finally able to run sushiboats.py against jboss. Thanks for your help. Of course, I am going to dive into code now play with different config now. Just as a primer, can you please let me know what do I need to modify to similuate different load scenario? Also, I did not see any info under Meters and Charts tabbed pane. In case somebody else tries to run tests against JBoss, they need to add following jars in TestMaker\TMCP.bat. ====== set SOAKIT_HOME=C:\qa\pushToTest\source REM ** TVDinner Client set TMCP=%TMCP%;%SOAKIT_HOME%\Dev\TVDinner\JBoss4\deploy\tvdinnerClient_Jbos s.jar REM ** SushiBoats Client set TMCP=%TMCP%;%SOAKIT_HOME%\Dev\SushiBoats\JBoss4\deploy\sushiboatsClient_ Jboss.jar REM ** TheBuffet Client set TMCP=%TMCP%;%SOAKIT_HOME%\Dev\TheBuffet\JBoss4\deploy\thebuffetClient_Jb oss.jar set TMCP=%TMCP%;%SOAKIT_HOME%\Dev\DPL\deploy\DPL.jar REM==================================================== SET JWSDP_HOME=C:\software\jwsdp-1.6 set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-impl.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-api.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-spi.jar set TMCP=%TMCP%;%JWSDP_HOME%\fastinfoset\lib\FastInfoSet.jar set TMCP=%TMCP%;%JWSDP_HOME%\sjsxp\lib\jsr173_api.jar set TMCP=%TMCP%;%JWSDP_HOME%\saaj\lib\saaj-impl.jar set TMCP=%TMCP%;%JWSDP_HOME%\saaj\lib\saaj-api.jar Regards, Prabhat -----Original Message----- From: users-bounces@lists.pushtotest.com [mailto:users-bounces@lists.pushtotest.com] On Behalf Of Frank Cohen Sent: Thursday, December 07, 2006 1:12 PM To: TestMaker users list Subject: Re: [ptt-users] jboss and XS Test Hi Prabhat: 1. The source\dev\XSTest\tm_start\SetSoakitEnv.bat is a little script that contains the variables you should set for the tests to work. JBOSS_HOME should point to the JBoss installation directory (where it was installed). If it is working in a remote server, we will require some of the jar that came with it, as distributables, in the client side. I have this in in the list: source\dev\SushiBoats\JBoss4\deploy\build.xml(15): source\dev\SushiBoats\JBoss4\deploy\build.xml(160): source\dev\TheBuffet\JBoss4\deploy\build.xml(29): source\dev\TheBuffet\JBoss4\deploy\build.xml(37): source\dev\TheBuffet\JBoss4\deploy\build.xml(114): source\dev\TVDinner\JBoss4\deploy\build.xml(17): source\dev\TVDinner\JBoss4\deploy\build.xml(173): Note that for Sushiboats we need the JBOSS_HOME only to deploy. It is in TheBuffet that we use the Jboss Client and some Lib jar files. 2. TestMaker is not ready out of the box to run the examples. The TestMaker.bat and TMCP.bat files require some changes, in order to load the client jar files required to run some agents. Particularly, the problem presented is in the jboss4_sushiboats.py line : # javax's Stub from javax.xml.rpc import Stub This is loaded in the TMCP_Rest.bat, referenced in the line: REM ** JWSDP Libraries set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-impl.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-api.jar set TMCP=%TMCP%;%JWSDP_HOME%\jaxrpc\lib\jaxrpc-spi.jar Note that the JWSDP must be installed and the JWSDP_HOME should be set to point to it. So, please copy the bat files that are in the SOAKit\source\dev\XSTest \tm_start directory to the TestMaker install dir (be sure to include the tesmaker.bat). Then edit the SetSoakitEnv.bat script to set the environment variables, and execute it. Lastly, run the testmaker.bat file. It will show a selection menu, where the user simply needs to choose the option 3 (Rest) which calls the correct TCMP and sets all libraries for running JBoss examples. Hope this helps. -Frank On Dec 7, 2006, at 7:13 AM, Prabhat Jha wrote: > I see JBOSS_HOME being used in pushToTest\source\dev\SushiBoats > \JBoss4\deploy\build.xml. I am going to follow on that but what I > am trying to do is to use prebuilt binaries, both client and > server, through GUI. Intuitively, I was thinking it would be in > pushToTest\TestMaker\XSTest\properties.py. > > > > Regards, > > Prabhat > > > > From: users-bounces@lists.pushtotest.com [mailto:users- > bounces@lists.pushtotest.com] On Behalf Of Prabhat Jha > Sent: Thursday, December 07, 2006 8:02 AM > To: TestMaker users list > Subject: RE: [ptt-users] jboss and XS Test > > > > Hi Paul, > > > > I do not see any content in your mail. Looks like accidental click > on send button:-( > > > > Regards, > > Prabhat > > > > From: users-bounces@lists.pushtotest.com on behalf of Paul Cuda > Sent: Thu 12/7/2006 7:55 AM > To: TestMaker users list > Subject: Re: [ptt-users] jboss and XS Test > > > > ___ > Sent with SnapperMail > www.snappermail.com > > ..... Original Message ....... > On Wed, 6 Dec 2006 18:24:43 -0800 Frank Cohen > wrote: > >Hi Prabhat: Thanks for downloading TestMaker. Which Kit are you > >using? The file name will help. Thanks. -Frank > > > > > >On Dec 6, 2006, at 3:45 PM, Prabhat Jha wrote: > > > >> Hi, > >> > >> > >> > >> I just downloaded TestMaker and I am trying to run > >> jboss4_sushiboats.py with jboss using GUI. Prebuilt binaries for > >> sushiboats deploys with no problem. I am having problem running the > >> XS Test. I would appreciate if you could help with me following > >> questions: > >> > >> > >> > >> Where do I set the HOME locations for the JBoss application server > >> in startup script? I am referring to Section 1.5 in the developer > >> journal. > >> Prebuilt binaries has client side jar as well. Where do I need to > >> add this jar so that it's in classpath? > >> I am getting following error when I run sushiboats.py > >> Agent error: > >> > >> Traceback (innermost last): > >> > >> File "", line 22, in ? > >> > >> ImportError: No module named rpc > >> > >> > >> > >> > >> > >> I think this error can be r