- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 04:05 PM
Hello SN Community,
Is it possible to access to parametized variables with the Run Server Side Script Step shown below?
For example, I want to access these parametized variables on the server-side:
I am aware that you can access these variables with Test Step like Set Component Values (Custom UI) and others , but I need to access them on the server side. I appreciate all the help and suggestions you can provide.
Thank You Everyone,
Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 09:50 PM
Hi,
Parameterised tests are not supported on Server Side
Note: Please mark reply as correct if it has answered your question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 09:50 PM
Hi,
Parameterised tests are not supported on Server Side
Note: Please mark reply as correct if it has answered your question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 07:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 01:36 PM
You can query 'sys_atf_test_result' by testcaseId and status to get the record(s) you need. Some sample code you can play with below:
//only 1 test is ever running with the unique testcaseId
var gr = new GlideRecord('sys_atf_test_result');
gr.addEncodedQuery('test=' + testCaseId + '^status=running');
gr.query();
From there, the parameters field has the data you need.
var out = []
if(gr.next()){
out.push(gr.parameters);
}
Good luck.
Efrem

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 08:58 AM
Here's an alternate solution:
- Record Insert (for example, an Incident)
- Store a parameter in the description field
- Server-Side Script
- Retrieve the record inserted and use the description field as the parameter
// In server-side script
//*************************
var createBufferIncident = 'a1...d7'; // sysid of previous Record Insert step
var bufferIncident = new GlideRecord('incident');
bufferIncident.get(steps(createBufferIncident).record_id);
// Use bufferIncident.description to access the stored parameter
gs.info(bufferIncident.description);
Hope this helps!
Alberto