Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(info) since 3.3.42

Table of Contents
Info

Please refer to the Pre-Processing Task page for setting up and configuring Pre-Processing Tasks: How To Use Pre-Processing Tasks

After enabling Script Task, return to the profile configuration page and select the edit (pen) icon for Script Task.

...

Configuration

The edit icon launches the pre-proc script editor.

...

Evaluates the Header Script against the selected Test Case. The result of the script test will be shown below the existing form.

...

Matching Headers:

Code Block
subject,x-subject

Script:

Code Block
 var subject = headerBeans.get('subject').getOriginalVal(); 
 var hdr = jemhUtils.addPreProcHeader("x-subject", "NEW "+subject); 
 print('new header: '+hdr.getUpdatedVal());
 headerBeans.put("x-subject", hdr); 

...