Forum Discussion

skillsoft's avatar
skillsoft
Frequent Contributor
15 years ago

Updated documention for HTTP request?

Hi,

Is there any updated documentation for the HTTP request? The current documentation is current as of May and does not discuss the the new functionality that was added with 3.6. I'm looking to see if you can pass data via a property transfer or through Groovy scripting into a form on an HTTP Request. What I need to do is fill out the form with Company Name and Group code. The Seat Count and Collections(and seats) should be static. The raw html (and request tab) has the data that I'm feeding in, but I don't know how to make this data driven. What I need to do is generate a subscription id if one doesn't exist in a spreadsheet so the Company Name and Group Code would change each time.

Raw html:

POST https://secure.qa.books24x7.com/access/ssmcreate.asp HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Host: secure.qa.books24x7.com
Content-Length: 91

name=test&group=test&seats=100&collection=KC8570&collseats=100&task=+Add+&collectionstring=

Thanks,

Mary

  • skillsoft's avatar
    skillsoft
    Frequent Contributor
    Hi,

    Is it possible to do what I need the HTTP request to do? If not, I need to start working on an alternative (probably selenium).

    Thanks,

    Mary
  • Hello,

    When using the new Web Recording functionality, each request will be recorded and added to your TestCase as a TestStep. Any data filled into a form which is submitted should be correctly represented in the TestStep as Properties, as you have seen in the Request tab. To make some of these fields data driven, you have some alternatives. The information on our manual should be a good resource of information.

    You can add a DataSource Step which loads the external data, and then use Property Expansions to get this value for the request. Good luck!

    Regards,
    Dain
    eviware.com
  • skillsoft's avatar
    skillsoft
    Frequent Contributor
    Hi,

    Thanks for the info, the properties were blank after recording and the teststep wouldn't run unless I filled them in. Once I added the property names and values correctly in the teststep everything worked fine. I was able to use property expansion to make the teststep data driven. Were the properties on the HTTP Request suppose to be populated automatically for a form? I tried 2 different pages and both property pages were blank after recording.

    One thing to note is to submit a form or add multiple selections from a list box (html appended each selection on page), you may have to add "hidden" properties as well. I found a tool that captures traffic (HTTP Look,etc) was helpful in seeing what the actual traffic being sent was.


    Thanks,

    Mary
  • Hello,

    It seems the form recording aspect isn't currently working as it should. We're working on it and hope to have a fix soon. Sorry for the inconvenience!

    Regards,
    Dain
    eviware.com