Posts

TestComplete Tutorial 12 - Constant and simulated Keys

Image
   

TestComplete Tutorial 11 - Different Ways to click on Button in Windows Desktop Applications

 There are several ways to click a button in an application:     1.  Click( ) or ClickButton( ) -                These methods are used for single click on button.             Examples -                                       myButton.Click();                                     myButton.ClickButton();         2. Keystrokes - You can click a button by simulating keystrokes that represent an access key.  An access key is an underlined symbol within the button caption.  It permits a click of a button by pressing the ALT key in combination with the assigned access key.              Example -...

TestComplete Tutorial 10 - Keystrokes

 Using different keystroke methods, you can simulate keyboard input in your tests. Different Methods are   -  SetText( )  - sets text in an edit control. Desktop.KeyDown( ) -  Simulate pressing the specified key by its virtual code.  This method is applied for Desktop objects. Desktop.KeyUp( ) -  Simulate releasing the specified key by its virtual code.  This method is applied for Desktop objects. OnscreenObject.Keys -  Send key presses to the desired object.  OnscreenObject Keys types in the specified onscreen object. Sys.Keys and Desktop.Keys  -  Send key presses to the desired object.  Desktop.Keys and Sys.Keys type in the currently focused object. Examples -  setText -                              var userName = "name mapping for  userName  button";           ...

TestComplete Tutorial 9 - Mouse Actions and Mouse Wheel Events

 TestComplete provides mouse actions and mouse wheel events . Mouse Actions To simulate clicks, double-clicks, dragging and hovering (hot-tracking) operations, each onscreen object provides the following methods: Click( ) -  Simulates a single click performed with the left mouse button. ClickR( ) -  Simulates a single click performed with the right mouse button. ClickM( ) -  Simulates a single click performed with the middle mouse button. DblClick( ) -  Simulates a double click performed with the middle mouse button. DblClickR( ) -  Simulates a double click performed with the middle mouse button. DblClickM( ) -  Simulates a double click performed with the middle mouse button. Drag( ) -  Simulates a dragging operation performed with the left mouse button. DragR( ) -  Simulates a dragging operation performed with the right mouse button. DragM( ) -  Simulates a dragging operation performed with the middle mouse button. HoverMouse( ) - ...

TestComplete Tutorial 8 - Recording Script with TestComplete

Image
 TestComplete gives options for recording the Script and running the recorded script. To start the recording in TestComplete do any of the following: If Project is already open -  Click    Record Keyword Test   or     Record Script   on the   Test Engine   toolbar. Select  Test > Record > Record Keyword Test   or   Test > Record > Record Script   from the TestComplete main menu. Click    Record   on the toolbar of the   Keyword Test editor . Click    Record Test   on the   Start Page. Press  SHIFT+F1 . If no project is open -  TestComplete will show the Record Test wizard that will guide you through creating and configuring a project for your test. Then TestComplete will start recording. TestComplete will show the Recording toolbar where you control the recording process. To pause recording, click    Pause  on the Recording toolbar or pr...

TestComplete Tutorial 7 - TestComplete Projects and Project Items

Image
 TestComplete operates with test projects and project suites . Project   A  project is a starting point for creating tests. Project contains your tests, baseline data for checkpoints, information about tested applications, and other items needed to perform testing.  The project also defines the execution sequence of tests. Project suites You can group related projects into a project suite.  TestComplete automatically generates a project suite when you create a new project.  You can also create an empty project suite and add projects to it. Project items Project items are project elements that perform or assist in performing various testing operations. Besides project items, your projects can also include helper files like Excel or .csv files with test data. 

TestComplete Tutorial 6 - Object Identification in TestComplete

Image
   Different ways to identify objects in TestComplete -  A.  By Search Criteria  -  1. Name Mapping:  With name mapping, TestComplete stores all the objects with which your tests interact in the Name Mapping repository.  T hese mappings are stored as object where we can specify search criteria like properties provided by TestComplete or xpath expressions or CSS selectors and TestComplete finds these objects in the application. User friendly name(Alias) can be given to address the objects from tests.          Examples:                                        Aliases.browser.page2.btnSave                               Aliases.Windows.navigationbar.btnSearch 2. Object Browser: TestComplete have the Object Browser pa...