
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi All,
Can we define an EnvironmentVariable with silkCentral then get this variable with the comand
Environment.GetEnvironmentVariable("myParam") within silkTest Workbench.
thank you in advance.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
In Silk Central 16.0 you have to create an Input Parameter for the .NET script having the same name as the parameter in Silk Central:
Configure the parameter in Silk Central:
In the Workbench specify an input paramter for the script and get the passed value like shown in the sample below:
Public Sub Main(args As IDictionary(Of String, Object))
With _desktop.Window("Untitled - Notepad")
.TextField("TextField").TypeKeys(args("myParam"))
End With
End Sub
Using environment variables might be implemented in SC 16.5.
Best Regards,
Sebastian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
In Silk Central 16.0 you have to create an Input Parameter for the .NET script having the same name as the parameter in Silk Central:
Configure the parameter in Silk Central:
In the Workbench specify an input paramter for the script and get the passed value like shown in the sample below:
Public Sub Main(args As IDictionary(Of String, Object))
With _desktop.Window("Untitled - Notepad")
.TextField("TextField").TypeKeys(args("myParam"))
End With
End Sub
Using environment variables might be implemented in SC 16.5.
Best Regards,
Sebastian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thank you for your response. I have already tested input parameters in SCTM but it doesn't meet my needs. In fact I don't want to manage those parameters in each script it's why I think that environment variables offers more flexibility.