Is it possible to call a client script from a "Run server side script" in ATF?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 10:11 PM
I am trying to call a client side script to populate values in the Change management
There is a client script needed to be called to populate the 'Planned start date' and 'Planned end date'
- Labels:
-
Change Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 10:24 PM
Is it possible to call a client script from a "Run server side script" in ATF?
[ANSWER] NO. Also, invoking any client script from a Server Side script is not possible outside the ATF as well
Alternative:
You can simulate the actions necessary in ATF to trigger this client script.
for example :if the client script you are talking about is an Onchange client script that gets triggered when Planned Start Date changes, then you can use the test step "Set Field values" and change the value of Planned Start Date.
Thank you,
Aman Gurram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 10:33 PM
Hi Aman Gurram,
I tried using the "Set Field values" step, although the test passes successfully the values are not generated to the fields. it says "value" but on the screen the values are not populating. also tried using javascipt:gs.nowDateTime() not working. pls suggest an alternative
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 10:39 PM
Could you please provide some information like:
1. What type of client script is responsible for populating your fields [is it an Onload or Onchange or Onsubmit]
2. Please post the code of the client script [I ask this because the client script may have conditions in the code that need to be satisfied to populate your fields]
Thanks,
Aman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 11:07 PM