Skip to content

wsSetRequestHeaderParamsFromDataFile (wsCONNECT)

Compatible with:
  • Purpose
  • This command can be used in replacement with wsSetResponeHeaderParam command where multiple wsSetResponeHeaderParam instructions are required to set the header params within an wsBlock.
  • Instead of creating separate instructions with the command "wsSetResponeHeaderParam" within the test script, a better alternative is to dynamically load the header parameters for the request from a Data File, optionally passing a Data Filter.
  • In the Data File all header request fields that are common across all services can be set. A filter on the data file, if passed, should filter the data file that contains the header request field params based on the filter.
  • Syntax
  • wsSetRequestHeaderParamsFromDataFile(dataFileName)
  • Target
  • DataFileName(W/A)
  • [W/A - OPTIONAL]
  • If status of the file is not specified, Worksoft SaaS picks Active (A) version of the data file. And if the specific version is not found, then the command fails with error.
  • Value
  • N/A
  • Return Value
  • N/A

Example(s):

Click here to see the example


 

Feedback and Knowledge Base