• Service Test 11: How To Set HTTP Request Headers & Get HTTP Response Headers

    Posted on July 13, 2012 by Admin

    Recently one of our clients asked if it was possible to set HTTP Request Headers  and retrieve HTTP Response Headers in Service Test 11 for REST and SOAP activities. The test case began by executing an activity to authenticate and retrieve an authentication token, and that token had to be passed in an authentication header for every remaining activity. This is all possible in Service Test 11.20 – let’s take a look at how it’s done.
    Setting HTTP Request Headers
    SOAP Activities

    For SOAP activities, C# code can be added to e Read Entire Entry

  • Service Test 11: Programmatically Set and Get Test Variable Values

    Posted on July 11, 2012 by Admin

    Test Variables in Service Test 11 are global variables that can be accessed later in the test script, either by linking to the variable in the GUI (Link to a Data Source) or by setting the variable in the GUI (Set Test Variable activity). Both can also be done programmatically using C#. For example, it may be necessary to set a Test Variable inside an activity Event (instead of using the Set Test Variable activity). In this post, we cover the methods available within Service Test to set and retrieve Test Variables.
    Create Read Entire Entry