Is it possible to call a client script from a "Run server side script" in ATF?

Ijaazops
Kilo Expert

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'

 

find_real_file.png

6 REPLIES 6

ARG645
Tera Guru

 

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

Ijaazops
Kilo Expert

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

find_real_file.png

 

 

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

Ijaazops
Kilo Expert

Hi Aman,

its a onload Client script.

find_real_file.png