Back To Normal

Subscribe To Our E-Mail Newsletter

Showing posts with label Silk Test. Show all posts
Showing posts with label Silk Test. Show all posts

Wednesday, August 11, 2010

Difference Between QTP and SilkTest?

Difference between Qtp and silk test are explained in following URL:


http://tips-testing.blogspot.com/2008/06/comparison-of-silktest-and-quicktest.html
Read More


Monday, March 8, 2010

What is the use of opt and ini file?

Ini file is specific to that project. Instead of creating the two project like IE6.vtp and IE7.vtp, user can reset the default options through the opt file.

Another way of looking at option files is to look at the partner.ini file. This file contains all of the options (Agent, Runtime, Extensions, ect.) that get loaded when you start up SilkTest. An .OPT file is an .INI file that contains items from the partner.ini file that you want to have changed when you open that option set.
 
Why? -- Suppose you have 2 projects that you work on. Each have different extensions being used and frame files used. Instead of manually typing the frame file into the Use Files part of the Run time Option dialog each time you want to switch to testing another app, you could have all the options you need stored in an .OPT file.

  To open the .opt file
    1. open the silk test
    2. Navigate to the options menu and click the open new options set.
   
  For Example:
    Excel 2003 and 2007  -- Change or reset the extensions through the opt file.
Read More


Where help files are located in Silk Test?

4test.inc This file have all default types information and Browser type related information
4Test.t Have information about the all liberties methods and functions. if user update the 4 Test.t file
, it will update the library browser.
4test.help default Chm file type.
Read More


Wednesday, March 3, 2010

How to set the recoverysystem in Silk Test?

To set the recovery system:
  • Make sure the application that you are testing is running.
  • Click Set Recovery System on the Basic Workflow bar. If the workflow bar is not visible, choose Workflows/Basic to enable it.
  • From the Application list, click the name of the application that you are testing. All open applications that are not minimized are listed. This list is dynamic and will update if you open a new application. If you are connected to the Open Agent, only those applications that have extensions enabled display in the list.

  • If you selected a non-Web application as the application: the Command line field displays the path to the executable (.exe) for the application that you selected.the Working directory field displays the path of the application you selected.
  • If you selected a Web application, the Start testing on this page field displays the URL for the application you selected. If an application appears in the list, but the URL does not display in this field, your extensions may not be enabled correctly. Click the Enable Extensions button in the Basic work flow bar to automatically enable and test extension settings.
  • Optionally, in the Frame file name field, modify the frame file name and click Browse to specify the location in which you want to save this file. Frame files must have a .inc extension. By default, this field displays the default name and path of the frame file you are creating. The default is frame.inc. If frame.inc already exists, SilkTest appends the next logical number to the new frame file name; for example, frame1.inc.
  • Optionally, in the Window name field, change the window name to use a short name to identify your application.
  • Click OK.Click OK when the message indicating that the recovery system is configured appears.
  • A new 4Test include file, frame.inc
Note: Source taken from Borland help
Read More


To load and Run Silk test From Command Propmt

To load SilkTest, type:
partner

To run the test.s suite, type:
partner -r test.s on system "sys1"

To run the test.t script, type:
partner -m sys1 -r test.t

To run the test.t script with arguments, type:
partner -r test.t arg1 arg2

To run the tests marked by the query named query3 in tests.pln, type:
partner -query query3 -r tests.pln

To run tests.pln, and export the most recent results set from tests.res to tests.rex, type:
partner -q -resexport -r tests.pln

To edit the test.inc include file, type:
partner test.inc
Read More


How to read and Write data from Text File using Silk Test?

Silk Test is providing Default functions to read and write data into text Files.
For Reading data from Text File:
ListRead (lsList, sFileName, frType)
Note : Each item in the list can be a maximum of 512 characters.-
For Writing data into Text File:
ListWrite (lsList, sFileName, ftType)


But if you want to update the data into Text file. user has to write new functions for that.
Function writedataintotextFile(sFileFullPath,lsTest)
{
 HFILE hNoteFile
 Int iCount
 List of STRING lsTest

 hNoteFile =FileOpen(sFileFullPath,2) // 2 For Write , 3:Update 1: Read
 for iCount =1 to ListCount(lsTest)
   FileWriteLine (hNoteFile,lsTest[iCount])
 FileClose (hNoteFile)
}
Read More


Thursday, February 11, 2010

DataBase with Silk test ?

    [ ]    STRING sDeptName
    [ ]    HDATABASE hdbc
    [ ]    HSQL hstmnt
    [ ]  LIST of ANYTYPE lATemp
    [ ]
    [-] do
        [ ]
        [ ]    // connect to SQL 2000 Server Test DB
        [ ]    hdbc = DB_Connect ("dsn=RPM611B1;PWD=Usrqa1234;UID=qausr")
        [ ] 
        [ ]    // retrieve info from Department table
        [ ]    hstmnt = DB_ExecuteSql (hdbc, "SELECT * FROM GROUP_MASTER")
        [ ] 
        [ ]    // process the information that came back
        [ ]    print ("Here's the info in the Department table:")
        [ ]    print (hstmnt)
        [+] //    while (DB_FetchNext (hstmnt, id, sDeptName, sDeptName))
            [ ] //   print ("Dept: {id}  Name: {sDeptName}  Head: {iheadID}")
        [-] while (DB_FetchNext (hstmnt, lATemp))
            [ ] resprintList("List",lATemp)
            [ ]
        [ ] 
        [ ]    // release resources (unneeded really
        [ ]    // because immediately followed by disconnect)
        [ ]    DB_FinishSQL (hstmnt)
        [ ] 
        [ ]    // disconnect
        [ ]    DB_Disconnect (hdbc)
    [+] except
        [ ] ExceptLog()
Read More


Wednesday, February 3, 2010

When Browser Content are not identified , Please Check the Tools Options?

Solution 1:
  1.  Navigate to Tools -> Options and Advanced tab.
  2. In browsers Check the options : Enable third- party browser extensions 
Solution 2:
  1.  Navigate to Tools -> Options and Programs -> Manage addons tab.
  2. In add on list enable the borland  "QAPHLprObj class" add on.
Read More


Thursday, December 3, 2009

Class mapping in Silk Test?

Problem: When user take the window declaration for application, most of the objects are identified as custom win?User cant able to use the existing methods and properties for this class?

solution: User can map the custom win class with standrad class. In silk test, navigate to the options and click class map.There user can map the custom class with standard class and add to the list.

Saved location: All custom objects are stored in the project.ini file.

Example:
In web based application, button will identified as a text. user can mape the text with button class then reuse the existing button properties and methods for custom class.
Read More


Wednesday, December 2, 2009

How to override existing TextField methods in Class?

code

[-] winclass TextField: TextField
    void setText()
           print ("Derived settext class")
          derived :: SetText()
           return
Read More


Use of Winclass in Silk Test?

Winclass is a keyword to create the class(any user defined class)
Any win to inheritance properties of existing class.


Anywin is actually a parent class of any GUI object in Silk Test, i.e. all GUI classes are derived from Anywin.


  Example :

[-] winclass RpmSearch : AnyWin
   
    [+] HtmlPopupList  SelectModel
        [+] multitag "Model"
            [ ] "^Model"
            [ ] "#1"
            [ ] "$modelList"
            [ ] "@(980,66)"

Now user can use RPMSearch under the any class.


[-] window BrowserChild BasicSelector

       RPMSearch SelectorSearch

User Can Call the Object through like this.
      BasicSelector.SelectorSearch.SelectModel.Select("Polaroid")
Read More


Define BroweserChild in Silk test?

Browser Window is divided into the frames. Each frame has the BrowserChild Class, Class have all objects of the web page contents.
Tag: Default identification is caption of the page for Browser child.
Read More


Friday, November 27, 2009

What are all identification for window declaration?

  • Caption
  • Index
  • Prior text
  • Location
  • Window id
  • Attributes
Read More


Thursday, November 26, 2009

What is the use of the True log Explorer?

  •    Easy to track the silk test related events or actions for particular cases.
  •   When exception is occurring, it will take the screen shots.
  • Silk Help : It helps you analyze test results files and can capture screen shots before and after each action, and when an error occurs.
Read More


When frame .inc file is created in Silk Test?

     After setting the enable extension to the browser or your window , it will generate the frame.inc file.
Read More


1. What is the differnce between create new project and create from existing project in silk test?

 When user creating the project , it will ask user to select either create project or create from existing project.
  • create new project
             It will generate the  default silk test files.
  • create from existing project
             User have option to add the current project files(inc,.t,pln) to the new project. we can reuse the existing frame work instead of creating.
Read More


Tuesday, November 24, 2009

Silk Test File Systems

File system
-----------

1..t file
   It will have all testcase related information. User can write there own flow based test cases,functions.

  Accessibility: It likes private file,whatever user keeping the information, it not able to access through other file

2. .inc file
    It will have information about class, procedures , methods,and relationship between the above
three(frame work.). User can define the global declaration , even user can write private and public
methods here.

    Accessibility: user can access globally , through out the project.

3. Plan file.
   
     User can categorize all test cases into common task name(suit)Following inputs are available in the plan file.
 It will classifies into three categories

  testcase :
  1.      script
  2.      test data
  3.      testcase
  attributes
  1.     category
  2.     developer
  3.     component
  4.     module
  5.     priority
  symbols.
4. res file
    It contain the information about the test run  pass /fail and also log information.

 Other Files .
  • .vtp (project File)
  • .s suite Files
  • ini profile related files
Read More


1.Silk Test Basic

Silk Test is an automation tool for Regression testing.It will support in multiple platform Linux,windows and solaris.  It have the powerful object oriented scripting language 4Test.

 If you want to know more about Silk Test arcitecture and File systems.

Please go through the following link :

http://en.wikipedia.org/wiki/SilkTest
Read More


560 Free Online Courses

Top 200 universities launched 500 free online courses.  Please find the list here .