3

I am new to Silktest, so can anyone help me out to verify the Windows version and the IE browser that the test is about to run on.

Is there an inbuilt function that I could use in my test case that would actually pull th

1
  • Looks like your last sentence is unfinished. What is "pull th"?
    – dzieciou
    Commented Nov 22, 2012 at 17:58

3 Answers 3

2

Try the SYS_GetName function.

From the doc:

Returns the name of the operating system on the target system, where the 4Test Agent is running.

0

I haven't used SilkTest, but I understand that it supports C#. In C# you can get browser info via the HttpRequest.Browser property and you could use the System.PlatformID enumeration and the System.Environment.OSVersion property, or for more detailed OS info you invoke some Win32 APIs described in my blog here

0

In addition to tehlexx's answer, you can also try SYS_GetVersion(), which returns the Microsoft specified constant that specifies the OS being used.

If you're doing web testing or some kind of non-trivial parallel/network testing, I would try avoiding using SYS_ functions, however since they're highly machine dependent. You could also try writing custom functions that pull the OS information from the regional settings or elsewhere directly from the machine the test is being run on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.