How to create and use Functions?

Functions are a named set of test steps that can be used in a test case. If we find ourselves using the same set of test steps more than once, then using a function would be preferable.

There are two ways to create a function. 

1. The first way is by grouping the steps.

  • Select the check boxes (on the left) for the steps to be included in the function.
  • Click on the Grouping icon which is placed between [Copy selected steps] and [Break].

mceclip0.png

  • Give the function a name
  • Click on Group
  • A prompt will appear asking to replace the steps with the newly created function. Click Yes.
  • Notice that the steps have been replaced with "CALL <function_name>"

2. The second way is to navigate to the Function library.

  • Click on Library > Functions
  • Click on New Function
  • Give the function a name
  • Click on Save
  • Fill in the steps for the function (just like a test case)
  • Save the function
  • Open test case and create a step: "CALL <function_name>"
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.