Silk Test doesn�t care about how the application is created, in which software the application is written, what kind of design is used, which browser it is being worked, in which operating system the application is running.
All that needs for an application to be tested using silktest is that it needs a frame (like window)
Browser Independent
There are various kinds of browsers used by various people for running their applications. The user may use any browser of his choice to test the standard application. Each and every browser acts differently with different applications. They show the same page differently. The web objects they display can also be aligned or displayed in different manner.
SilkTest just looks at these browser contents as objects and hence they cannot avoid any images, texts, that they are not identifiable. Also we can write a test in one browser and run it in any other browser (to some extend). i.e, using SilkTest, we can do cross browser testing.
With minor modifications, your tests are robust enough to support different browsers and different versions of these browsers.
Technology Independent
Silktest does not care how the application was built. It seamlessly works with the different web technologies commonly used today.
How to use the same code for multiple browsers:
Start writing the silk scripts. Capture the window declarations (.inc file) and write the .t file. Say if you are capturing the declarations from Internet Explorer & run successfully on it. As we captured the declarations from I.E., we now have to make the same test case run on Netscape since the tag value changes from multiple browsers.
Testing the Windows based applications
Before start writing scripts, enable the settings given below.
1. Declare all the window names and its objects (used in writing scripts) starting from the first window.
2. In the File-> New option in the menu bar, select the test frame.
3. In the resulting �new Test Frame� dialog box, specify the path of the executable file of your application.
4. After submitting that dialog box, the silktest will automatically create a declaration file with the default window declared.
5. Use that file to create your testscripts.
Testing the Java based applications
Before you start testing the java applications or applets, you have to set the java classpath.
Point to a Java archive (.jar file) that contains the software the powers SilkTest�s Java support for JDK 1.2 and JRE 1.2. This file is called SilkTest_Java2.jar.)
When you install SilkTest_Java2.jar is installed in this directory:\JavaEx
If you will use only JDK 1.2 for testing, you can activate Java support for JDK 1.2 by copying SilkTest_Java2.jar from \JavaEx to \jre/lib/ext.
If you do not copy SilkTest_Java2.jar to your JDK 1.2 install directory, you must point to it from your CLASSPATH.