I am trying to configure "Run Script" on click of a button. I have created JS File included the function and added in Harness, included the function in the section on click of button. the section is inside the same harness. but still not able to execute the scrpt on click of button.
can you one please help is there any way to confiure the script. I have given the function name with out "()" and tried as literal and with double quotes too.
No error when clicked on Button, nothing is executing.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I just recently set up a simple function to be called on click of a button using Run Script. I've attached a couple of screenshots to show how I set mine up, so you can compare them against your configuration.
I thought I would point out that if you have a UI Action list with multiple actions, then they execute sequentially, with the next one in the list not starting until the previous one completes. However, if the action is to run a script, then "done" is when the script completes. If the script asynchronously runs an activity on the server and then returns, the next step in the action list will likely be executing at the same time as that activity from the previous step is also executing. So the guaranteed synchronization does not quite hold true when running scripts. This can cause problems if you are assuming otherwise.