Posts

Showing posts from December, 2023

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 -                                If the underlined symbol is A, you should simulate pressing the ALT+A key combination.                                     myButton.Keys("~a");         3. Setting up the focus by Tab key -   You can click a button by setting the focus to it (for example, by using the TAB key) and simulating the SPACE key press.                 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";                                    userName  .Keys("Admin");                         KeyDown and KeyUp  -                                                                        Sys.Desktop.KeyDown(65);       

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( ) - Simulates moving the mouse pointer to the specifi

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 press  SHIFT+F10 . To resume recording, click    Record  on the Recording toolbar or press  SHIFT+F1 . To stop recording, click    Stop  on t

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 panel where all applications, windows and controls that TestComplete recognizes in our system or attached mobile devices are given in the form of Hierarchy. Each object in the hierarchy is identified by its type (for example, Process, Window, Browser, Page, WinForms object, XFObje

TestComplete Tutorial 5 - Testing Approaches in TestComplete

  Unit Testing :   When we have to test only a particular part of the application, we will create the unit test. We can invoke implicit methods of the applications. White-Box Testing :  We will use this when we have to test the application as per the access. This testing has been carried out with the access not higher than the user Functional Testing :  When we have to test the form from the customer's point-of-view, like checking What the way does for every user action. Parallel Testing :  It is used for testing the multiple subcomponents of the applications in parallel. It reduces the testing time. Load Testing :  It is utilized to put the predetermined load on the application and check the response. Regression Testing :  It is utilized for reusing the test on the project when modifications are made to the code. We can compare the latest results with the old results.

TestComplete Tutorial 4 - Creating your first project in TestComplete

Image
   Launch the application and you will see the start page. Follow these steps to create a new project. 1.  Go to the File menu. 2.  Click on the New option from the menu. 3.  Click on the New Project option. 4.   Alternately, you can use the shortcut key (shift + ctrl + N) to create a new project. 5.  A window will appear, give a name to the project. 6.  Click on Finish. 7.  Thus, we have created our first project in TestComplete.

TestComplete Tutorial 3 - Download and Install TestComplete

Image
  Download   TestComplete  -    TestComplete can be downloaded from the official SmartBear web site from  here . Install   TestComplete  -   1. Double-click on the downloaded TestComplete setup exe. It will show you the Installation Wizard. 2. Click on Next. It will start Installation. 3. Once Installation is Done, it will give the License dialog for activation. 4. Based on the users choice, they can select the option.

TestComplete Tutorial 2 - Advantages and Disadvantages of TestComplete

   Advantages of TestComplete Easy to use Offers scripting support to various languages - VBScript, Python, JScript, C++, and DelphiScript.  Support for keyword tests Support for record and Playback Support from SmartBear on issues or questions regarding TestComplete Tool Gives Elaborate report after the execution has been completed. We can see the properties of the objects from the screen through Object Spy. It utilizes database checkpoints, and we verify the data fetched from the database against baseline data. It offers integration with Jenkins, Bugzilla, Selenium, etc. Cross-platform testing AI-based object recognition Built-in test samples - help you to get started with the tool. Open flexible architecture - TestComplete has an open flexible architecture that enables users to automate applications across various browser and platforms. Disadvantages of TestComplete The license cost of TestComplete is very expensive. It needs manual steps for updating the test cases. Enhancement in

TestComplete Tutorial 1 - Introduction to TestComplete Automation Tool

  Introduction  - TestComplete is a tool designed by  SmartBear  for automating   desktop ,  mobile , and  web applications . Through this tool, we can generate, handle, and execute the tests. This tool supports wide range of technologies such as .Net, Delphi, C++Builder, Java, Visual Basic, HTML5, Flash, Flex, Silverlight Desktop, The Web and Mobile systems. TestComplete helps testers develop their test cases in various scripting languages like  JavaScript, Python, VBScript, Delphi Script, JavaScript.  In TestComplete, we have the option for playback and record test creation. We record the manual testing process, and we can playback and handle it as automated testing, unit testing, keyword testing, and regression testing. Why TestComplete? TestComplete offers different test automation capabilities -  1. Test Record and Playback:   TestComplete provides record and playback built in options for automation. Testers can record the test by manually performing actions on the application and