Skip to content

Latest commit

 

History

History
98 lines (74 loc) · 2.59 KB

10-Actions.md

File metadata and controls

98 lines (74 loc) · 2.59 KB

Actions

00. Create a new Web HTTP/HTML script and find how many actions are there.

Click here to view the hint/answer

By default, Web HTTP/HTML script will have three actions: vuser_init, Action, and vuser_end.

Record


10. Create a new action called myFirstAction

Click here to view the hint/answer

Right click on `Actions` in the `Solution Explorer`, click on `Create new Action` and enter `myFirstAction`, and then click on `OK`.


20. Delete the action myFirstAction

Click here to view the hint/answer

Right click on `myFirstAction`, and then click on `Delete Action` or select `myFirstAction` then press `Delete` key, then respond to the prompt.


30. Delete the action vuser_init or vuser_end

Click here to view the hint/answer

You cannot delete the `vuser_init` and `vuser_end` actions.


40. Is it possible to delete the default action Action?

Click here to view the hint/answer

Yes, you can delete the default action `Action`.

Record


50. Import a new action from the other script. Create a new Web HTTP/HTML script, if you do not have one.

Click here to view the hint/answer

Right click on the `Actions` in `Solution Explorer` and then click on `Import Action` to follow the prompts.

Record


60. What will happen if you rearrange the Actions by drag-and-drop?

Click here to view the hint/answer

Moving actions within the Solution Explorer does not affect the run order. To reorder the actions during runtime, select `Runtime Settings > General > Run Logic`.

Record


70. Try moving vuser_init or vuser_end up/down.

Click here to view the hint/answer

It is not possible to move up/down for the actions: vuser_init and vuser_end.


80. How to share your Actions to your teammates?.

Click here to view the hint/answer

Navigate to the script folder location and zip the desired actions and share it.

Record