HTTPS VS. HTTP IN SCRIPTS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

HTTPS VS. HTTP IN SCRIPTS

FMehran

Hello,

 

 

I have the following  URL link in my scripts to connect to application under the test. 

 

headers13= \

  [ NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*'),

    NVPair('Referer', 'http://ccbzone5:7777/spl/uiPage/ccTypeSearchPage?language=ENG'), ]

 

url0 = 'http://ccbzone5:7770'

 

 

We changed our link to https instead of http and now we are getting this error:

 

Here is the message:

 

11/14/13 5:08:58 PM (thread 22 run 1 test 201): Aborted run due to Java exception calling TestRunner

Java exception calling TestRunner

      File "C:\Grinder\.\VXPP0038-file-store\current\qAuditUsrro.py", line 134, in page2

      File "C:\Grinder\.\VXPP0038-file-store\current\qAuditUsrro.py", line 575, in __call__

      File "C:\Grinder\.\VXPP0038-file-store\current\q-mixcase30.py", line 111, in __call__

Caused by: HTTPClient.RetryException: Connection reset

      at HTTPClient.StreamDemultiplexor.retry_requests(StreamDemultiplexor.java:530)

      at HTTPClient.StreamDemultiplexor.close(StreamDemultiplexor.java:498)

      at HTTPClient.StreamDemultiplexor.read(StreamDemultiplexor.java:369)

      at HTTPClient.RespInputStream.read(RespInputStream.java:155)

      at HTTPClient.RespInputStream.read(RespInputStream.java:115)

      at HTTPClient.Response.readResponseHeaders(Response.java:980)

      at HTTPClient.Response.getHeaders(Response.java:698)

      at HTTPClient.Response.getVersion(Response.java:290)

      at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3238)

      at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2882)

      at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2674)

      at HTTPClient.HTTPConnection.Get(HTTPConnection.java:985)

      at net.grinder.plugin.http.HTTPRequest$2.doRequest(HTTPRequest.java:509)

      at net.grinder.plugin.http.HTTPRequest$AbstractRequest.getHTTPResponse(HTTPRequest.java:1252)

      at net.grinder.plugin.http.HTTPRequest.GET(HTTPRequest.java:504)

      at net.grinder.plugin.http.HTTPRequest.GET(HTTPRequest.java:450)

      at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.python.core.PyReflectedFunction.__call__(Unknown Source)

      at org.python.core.PyMethod.__call__(Unknown Source)

      at org.python.core.PyObject.__call__(Unknown Source)

      at org.python.core.PyInstance.invoke(Unknown Source)

      at ………….

 

 

11/14/13 5:08:58 PM (thread 22 run 2 test 201): Aborted run due to Java exception calling TestRunner

Java exception calling TestRunner

      File "C:\Grinder\.\VXPP0038-file-store\current\qAuditUsrro.py", line 134, in page2

      File "C:\Grinder\.\VXPP0038-file-store\current\qAuditUsrro.py", line 575, in __call__

      File "C:\Grinder\.\VXPP0038-file-store\current\q-mixcase30.py", line 111, in __call__

Caused by: HTTPClient.RetryException: Connection reset

 

 

 

 

I also have the following imports and libraries in my script:  Do I need to change/include something here?

 

Please help

 

Thanks

 

---------------------------------------------

 

# The Grinder 3.4

# HTTP script recorded by TCPProxy at Feb 20, 2011 4:32:22 PM

 

import string

import random

import re

import time

import datetime

 

#

# Simple proc to read file into array for later use by individual threads

# e.g. pipe deliminited account#|address

#

#

 

 

class InputParms:

                def __init__(self,filename):

                                self._users= []

                                infile = open(filename,"r")

 

                                for line in infile.readlines():

                                                self._users.append(string.split((line),':'))

                                infile.close()

 

                def getParms(self,index):

                                return (self._users[index])

 

from net.grinder.common import GrinderProperties

from net.grinder.script import Test

from net.grinder.script.Grinder import grinder

from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest

from HTTPClient import NVPair

 

connectionDefaults = HTTPPluginControl.getConnectionDefaults()

httpUtilities = HTTPPluginControl.getHTTPUtilities()

HTTPPluginControl.getConnectionDefaults().setUseContentEncoding(1)

 

----------------------------------------------------------------

 

From: Philip Aston [mailto:[hidden email]]
Sent: Sunday, June 30, 2013 10:24 AM
To: Ajinkya Karande
Cc: [hidden email]
Subject: Re: [Grinder-development] HTTP PATCH Support in Grinder 3.11

 

I'm afraid it does not.

If you find an Java (or Jython, or Clojure) HTTP library that supports PATCH you could call it with The Grinder. You'd just lose the features provided by the HTTP Plugin (http://grinder.sourceforge.net/g3/http-plugin.html).

- Phil

On 19/06/13 22:36, Ajinkya Karande wrote:

Does grinder support HTTP PATCH request, I assume this has been added after 2010 to HTTP protocol, wherein we can make partial resource modifications as compared to HTTP PUT request which does a full resource modifications. It would be great if someone could point me to the code snippet if it already exists.

 

 

Thanks and Regards,
Ajinkya Karande.



 


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: HTTPS VS. HTTP IN SCRIPTS

Gary Mulder-3

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Grinder-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/grinder-development
Loading...