silk testdoc

Upload: abduljan28

Post on 14-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Silk TestDoc

    1/23

    Done By

    Abdul Khader

  • 7/30/2019 Silk TestDoc

    2/23

    SilkTest is a tool for automated function andregression testing of enterprise applications. It wasoriginally developed bySegue Software which wasacquired by Borland in 2006. Borland was acquiredbyMicro Focus International in 2009.

    http://en.wikipedia.org/wiki/Segue_Softwarehttp://en.wikipedia.org/wiki/Borlandhttp://en.wikipedia.org/wiki/Micro_Focus_Internationalhttp://en.wikipedia.org/wiki/Micro_Focus_Internationalhttp://en.wikipedia.org/wiki/Borlandhttp://en.wikipedia.org/wiki/Segue_Software
  • 7/30/2019 Silk TestDoc

    3/23

    Silk Test is a tool specifically designed fordoing REGRESSION AND FUNCTIONALITYtesting.

    Silk Test is the industrys leading functional testing

    product for e-business applications, whether Windowbased, Web, Java, or traditional client/server-based. SilkTest also offers test planning, management, direct databaseaccess and validation, the flexible and robust 4Test

    scripting language.

  • 7/30/2019 Silk TestDoc

    4/23

    1) Plan: Determine the testing strategy and define specifictest requirements.

    2) Capture: Classify the GUI objects in your applicationand build a framework for running your tests.

    3) Create: Create automated, reusable tests. Use recordingand/ or programming to build test scripts written inSegue's 4Test language.

    4) Run: Select specific tests and execute them against theAUT.

    5) Report: Analyze test results and generate defect reports.

    6) Track: Track defects in the AUT and perform regressiontesting.

  • 7/30/2019 Silk TestDoc

    5/23

    SilkTest Host is a SilkTest component that managesand executes test scripts.

    SilkTest Host usually runs on a separate machine

    different than the machine where AUT (ApplicationUnder Test) is running.

  • 7/30/2019 Silk TestDoc

    6/23

    SilkTest Agent is a SilkTest component that receivestesting commands from the SilkTest Host andinteracts with AUT (Application Under Test) directly.

    SilkTest Agent usually runs on the same machinewhere AUT is running.

  • 7/30/2019 Silk TestDoc

    7/23

    4Test is a test scripting language used by SilkTest tocompose test scripts to perform automated tests. 4Testis an object-oriented fourth-generation language

  • 7/30/2019 Silk TestDoc

    8/23

    Document Object Model (DOM) browser extension isa SilkTest add-on component for testing Webapplications. DOM browser extension communicatesdirectly with the Web browser to recognize, categorizeand manipulate objects on a Web page. It does this byworking with the actual HTML code, rather thanrelying on the visual pattern recognition techniquescurrently employed by the Virtual Object (VO)

    extension.

  • 7/30/2019 Silk TestDoc

    9/23

    Virtual Object (VO) browser extension is a SilkTestadd-on component for testing Web applications. VObrowser extension uses sophisticated patternrecognition techniques to identify browser-renderedobjects. The VO extension sees Web pages as theyappear visually; it does not read or recognize HTMLtags in the Web application code. Instead, the VOextension sees the objects in a Web page; for example,

    links, tables, images and compound controls the waythat you do, regardless of the technology behind them.

  • 7/30/2019 Silk TestDoc

    10/23

    SilkTest Classic uses the domain specific 4Testlanguage for automation scripting. It is an objectoriented language similar to C++. It uses the conceptsof classes, objects, and inheritance.

    Silk4J allows to do automation in Eclipse using Java asscripting language

    Silk4Net allows the same in Visual Studio using VB orC#

    SilkTest Workbench allows automation testing on avisual level (similar to former Test Partner) as well asusing VB.Net as scripting language

  • 7/30/2019 Silk TestDoc

    11/23

    SilkTest Host: contains all the source script files. SilkTest Agent: translates the script commands into GUI commands

    (User actions). These commands can be executed on the same machineas the host or on a remote machine.

    SilkTest identifies all windows and controls of the application undertest as objects and defines all of the properties and attributes of each

    window. Thus it supports object oriented implementation (Partially). SilkTest can be run to identify mouse movement along with keystrokes

    (Useful for custom object). It can use both record and playback ordescriptive programming methods to capture the dialogs.

    Extensions supported by SilkTest: .NET, Java (Swing, SWT), DOM, IE,Firefox, SAP Windows GUI.

    SilkTest uses Silk Bitmap Tool (bitview.exe) to capture and compare thewindows and areas.

  • 7/30/2019 Silk TestDoc

    12/23

    Test Plan (.pln): used to create a suite of tests whencombined with test scripts. Example : test.pln

    -Myfirsttestscript : Mytest.ttestcase:firsttest-Mysecondtestscript :Mytest.ttestcase:secondtestWhere Mytest.t is the mainscript file and first test and second test are test casenames in Mytest.t file. When this plan file is run it willautomatically pick up first and second test case inorder and run those.

  • 7/30/2019 Silk TestDoc

    13/23

    Test script (.t): used to write actual testscripts. Example: Mytest.t (Automating notepadapplication)

    use "Mytest.inc"-test case firsttest ()notepad.Invoke()//invoke works for someapplicationsnotepad.file.new.pick()notepad.file.exit.pick()-test case second test ()notepad.Invoke()notepad.help.helptopics.pick()notepad.Exit()When this script runs it will execute firsttest andsecond test in order and then exit the notepadapplication.

  • 7/30/2019 Silk TestDoc

    14/23

    Frame file (.inc): The abstraction layer used to definethe windows and controls in application under testthat will be further referenced in .t files. Example :Mytest.inc

    -Window main win notepad-Menu FileMenuitemNew-Menu EditMenuitem Replace Here 'Window' ismain class with 'Menu', 'Menuitem' as a subclass. File,Replace are objects.

  • 7/30/2019 Silk TestDoc

    15/23

    Result file (.res): contains test run results with thenames of passed or failed tests along with a descriptionof the failures. Can also contain log messages.

    Other than the results file, all files are text-based andcan be edited in a text editor or the SilkTest IDE. As ofSilkTest 2006 the files can be saved in either ANSI orUTF-8 formats. All of the source files are compiledinto pseudocode object files either when loaded or atrun time if the source files are changed.

  • 7/30/2019 Silk TestDoc

    16/23

    1. Use the Record Test case command to recordactions and verification steps as you navigatethrough the application.

    2. Write the test case manually using theVisual 4Testscripting language.

  • 7/30/2019 Silk TestDoc

    17/23

    Easy to use interface

    Built in recovery system

    The object oriented concept

    Record & Play Multi-kind application testing

    Automatic generation of results

    Browser & Platform independent

    24 x 365 unattended testing

    Distributed Access to Test Results

  • 7/30/2019 Silk TestDoc

    18/23

    Cross Platform Java Testing Testing Across Multiple Browsers and Windows Versions Support for HTML, XML, JavaScript, Java, Active X, Windows

    controls, and Visual Basic. Single-recording testing for cross-platform Java testing with the

    Silk Bean. Against Over 35 Databases. Link Tester Validation of Advanced Database Structure and Techniques Creation of

    Test PlanTest FrameTest Suite

  • 7/30/2019 Silk TestDoc

    19/23

    A Test plan is made up of a large amount of information, astructured, hierarchical outline provides an ideal model fororganizing and developing the details of the plan. A testplan consists of two distinct parts

    An outline that describes the test requirements Statement that connect the outline to the 4Test scripts and

    test cases that implement the test requirements. Using the test plan, we can create and run tests.

    To start a new test plan : Select File / New Select Test plan and click OK. An empty test plan window opens.

  • 7/30/2019 Silk TestDoc

    20/23

    A Test Suite is a collection of test scripts. Consider a case that we arehaving a set of script (.t) file. If we want to run these scripts against ourapplication, we have to select the required test case or we have to runthe entire script file. But after the completion of that script file, theuser has to manually change that to the next script file to run those testcases available in that script. Instead of that silktest provides a way to

    continuously select a set of script files and run those script files at-a-stretch. This can be done by creating a new Test Suite file and declarethe needed script files in that suite file. To start a new test suite:

    1. Select File / New.2. Select Test Suite and click OK.3. In that suite file enter the script file names to run continuously.

    4. Save that script file.5. Compile the script file and run it.6. Now the process of running the script will not stop after thecompletion of the first script file, instead of that it will automaticallypass to the next script file and run the test cases available there.

  • 7/30/2019 Silk TestDoc

    21/23

    A test script file contains various test cases for varioustest conditions.

  • 7/30/2019 Silk TestDoc

    22/23

    In a script file, a test case ideally addresses one testrequirement. Specifically, a 4Test function thatbegins with the test case keyword and contains a

    sequence of 4Test statements. It drives anapplication to the state to be tested, verifiesthat the application works as expected, andreturns the application to its base state.

  • 7/30/2019 Silk TestDoc

    23/23

    Sit Test for functional and regression testingSilk Performer for load and performance simulationSilk Pilot for functional and regressiontesting CORBA and EJB servers

    Silk Radar for automated defect trackingSilk Vision for enterprise application healthmonitoringSilk Express for a scalability and load testing

    consulting solution.