Commodore
Commodore
867 views

Passing in different environment URLs

Jump to solution

Hi All,

We are trying to integrating our Silk Test Classic automation to Silk Central 17.0.   We are wondering how to pass the different environment URLs to run our Silk Test Classic automation from Silk Central. 

Thank you for any sharing! 

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

How many urls do you test?

A possible workaround could be:

1. Create a .opt file for each url you want to test. (demo.opt, staging.opt, production.opt) and specify a compiler constant in these files:

   [CompilerConstants]

    my_url = "demo.borland.com"

2. In Silk Central specify a parameter called url (possible values "demo", "staging" and "production")

3. Use this parameter to specify the used opt file by configuring the Options Set in Silk Central as:

   /${url}.opt

View solution in original post

0 Likes
2 Replies
Commodore
Commodore

Additional info:  We have a global variable for environment URL in the Silk Test Classic inc file.  As part of the integration with Silk Central, we like to pass in a similar URL parameter from Silk Central to the Silk Test so the inc file can pick up the parameter and use globally.

We can pass the parameter as argument for each test case from Silk Central, but this need to rewrite our test case since we use a global URL parameter for all the test cases.

Please also share your way of handling global parameter for Silk Central and Silk Test integration.

Thank you for sharing!

0 Likes
Micro Focus Expert
Micro Focus Expert

How many urls do you test?

A possible workaround could be:

1. Create a .opt file for each url you want to test. (demo.opt, staging.opt, production.opt) and specify a compiler constant in these files:

   [CompilerConstants]

    my_url = "demo.borland.com"

2. In Silk Central specify a parameter called url (possible values "demo", "staging" and "production")

3. Use this parameter to specify the used opt file by configuring the Options Set in Silk Central as:

   /${url}.opt

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.