File Types Used in SilkTest
Test Plan (.pln): used to create a suite of tests when combined with test scripts. Example : test.pln
- -Myfirsttest
- script : Mytest.t
- testcase:firsttest
- -Mysecondtest
- script : Mytest.t
- testcase:secondtest
Where Mytest.t is the main script file and firsttest and secondtest are testcase names in Mytest.t file. When this plan file is run it will automatically pick up first and second testcase in order and run those.
Test script (.t): used to write actual test scripts. Example: Mytest.t (Automating notepad application)
- use "Mytest.inc"
- -testcase firsttest
- notepad.invoke//invoke works for some applications
- notepad.file.new.pick
- notepad.file.exit.pick
- -testcase secondtest
- notepad.invoke
- notepad.help.helptopics.pick
- notepad.exit
When this script runs it will execute firsttest and secondtest in order and then exit the notepad application.
Frame file (.inc): The abstraction layer used to define the windows and controls in application under test that will be further referenced in .t files. Example : Mytest.inc
- -Window mainwin notepad
- -Menu File
- Menuitem New
- -Menu Edit
- Menuitem Replace
- -Menu File
Here 'Window' is main class with 'Menu', 'Menuitem' as a subclass. File, Replace are objects.
Result file (.res): contains test run results with the names of passed or failed tests along with a description of the failures. Can also contain log messages.
Other than the results file, all files are text-based and can be edited in a text editor or the SilkTest IDE. As of SilkTest 2006 the files can be saved in either ANSI or UTF-8 formats. All of the source files are compiled into pseudocode object files either when loaded or at run time if the source files are changed.
Read more about this topic: Silk Test
Famous quotes containing the words file and/or types:
“A common and natural result of an undue respect for law is, that you may see a file of soldiers, colonel, captain, corporal, privates, powder-monkeys, and all, marching in admirable order over hill and dale to the wars, against their wills, ay, against their common sense and consciences, which makes it very steep marching indeed, and produces a palpitation of the heart.”
—Henry David Thoreau (18171862)
“If there is nothing new on the earth, still the traveler always has a resource in the skies. They are constantly turning a new page to view. The wind sets the types on this blue ground, and the inquiring may always read a new truth there.”
—Henry David Thoreau (18171862)