Posts

Showing posts with the label AutomationTool

TestComplete Tutorial 18 - Creating Snapshots in Object Browser

Image
 TestComplete allows you to store snapshots of your tested application. A snapshot contains complete information about properties, fields and/or methods of an object that you selected and, optionally, of all of its child objects. Creating Snapshots To create a snapshot from the Object Browser - Select the desired object in the object hierarchy displayed in the  Object Browser . Click the    Save Object Snapshot  button on the  Save/Load Snapshots  toolbar. If the toolbar is hidden, right-click somewhere within the TestComplete toolbar or menu area and select  Save/Load Snapshots  from the pop-up list. This will open the Save Object Snapshot dialog. In the dialog specify the snapshot file name and object information the snapshot will contain. Click  OK . To create a snapshot from tests -  Use the  aqObject.SaveObjectSnapshotToFile  method that saves the object snapshot to the specified file. The method takes param...

TestComplete Tutorial 17 - Object Browser

Image
 Object Browser shows - Running applications The hierarchy of objects in applications Object properties and methods To open the Object Browser, click its tab or select View > Object Browser from the main menu - If needed, you can move the Object Browser to another place within the TestComplete window, or make it a separate window using docking options. Clicking on any running application from Objects panel, we can see the corresponding properties and methods used for application. Selecting each property will give the Description in the bottom Description panel. Also name mapping will also show for selected process in the top 'Selected Object' panel. Exploring Object Hierarchy The Object Browser panel lets you explore the hierarchical structure of processes running in your system. Here is a general view of the hierarchy displayed in the Object Browser: The hierarchical structure represents a tree with the Sys and Mobile objects as the top-level nodes. Each main branch ...

TestComplete Tutorial 16 - How TestComplete searches for mapped objects

Image
 When a test tries to get an object by its alias, TestComplete does the following: In the Mapped Objects tree, it finds an item that corresponds to the alias. Searches for the corresponding object in your system, starting from the top-level item in the Mapped Objects tree and moving down the hierarchy to the target item.It searches for each item on the appropriate level of the application hierarchy. If Extended Find is enabled, it will also search for the item on the following hierarchy levels as well. To find each item, it uses its specified identification criteria. Notes - The object hierarchy in the Aliases tree and in the Mapped Objects tree must not contradict the parent-child relationships of the corresponding objects in the application. Unlike aliases, mapped objects cannot be moved to the topmost hierarchy level. The topmost mapped objects can be Sys or Mobile. You can refer to objects in tests by their names both in the Aliases tree and in the Mapped Object tree. In the la...

TestComplete Tutorial 15 - Aliases and mapped objects

Image
 The Name Mapping repository includes two trees: Mapped Objects (hidden by default) - Shows all the objects (windows, dialogs, pages, and controls) found in your tested application. Typically, the Mapped Object tree matches the application’s object hierarchy. However, for web and mobile applications, it can omit some intermediate levels. The mapped name shows the object position in the Mapped Objects tree: You can use the mapped name to address objects from tests. However, it is more convenient to use aliases for this purpose. Aliases - Objects in the Name Mapping repository can have an alias – a user-friendly name, for example, ButtonOK or linkProducts. Aliases are used to refer to objects in tests. In script tests, you use full aliases, that is, the full hierarchy path of the object in the Aliases tree.  In keyword tests, you do not actually see the full hierarchy path, because TestComplete shows a short notation for easy viewing.  

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 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...

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 tes...

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...