Desktop, Web and Mobile Testing Tutorials
|
|
|
- Kathleen Griffith
- 10 years ago
- Views:
Transcription
1 Desktop, Web and Mobile Testing Tutorials * Windows and the Windows logo are trademarks of the Microsoft group of companies.
2 2 About the Tutorial With TestComplete, you can test applications of three major types: desktop, web and mobile: Desktop applications - these applications are executed on desktop computers running the Windows operating system. Web applications - these applications are executed in web browsers (including those web browsers that are embedded into desktop applications). Mobile applications - these applications are executed on Android or ios devices. This document is for novice users. It provides a brief overview of automated testing and of the product, and includes tutorials that explain how to create tests for major application types. After you read these tutorials, you will be able to create, modify and execute tests for desktop, web and mobile applications. smartbear.com TestComplete by SmartBear Software
3 Table of Contents 3 Table of Contents INTRODUCING AUTOMATED TESTING AND TESTCOMPLETE... 5 Automated Testing... 5 Test Types... 5 TestComplete Projects and Project Items... 6 TestComplete User Interface... 7 TestComplete Test Object Model... 8 Checkpoints and Stores TESTING DESKTOP APPLICATIONS Creating a Test Project Defining Applications to Test Completing the Project Creation Creating a Test Analyzing the Recorded Test Running the Recorded Test Analyzing Test Results TESTING WEB APPLICATIONS Creating a Test Project Selecting a Test Type Completing the Project Creation Preparing Web Browser Creating a Test Analyzing the Recorded Test Running the Recorded Test Analyzing Test Results Running the Test in Multiple Browsers TESTING ANDROID APPLICATIONS Preliminary Steps Creating a Test Project Creating a Test Analyzing the Recorded Test Running the Test Analyzing Test Results Running Test on Multiple Devices TESTING IOS APPLICATIONS Preparing ios Device Preparing ios Application for Testing Creating a Test Project Creating a Test Analyzing the Recorded Test SmartBear Software
4 4 Table of Contents 6. Running the Test Analyzing Test Results Adjusting the Test for Running on Multiple Devices Running Test on Multiple Devices WHERE TO GO NEXT TECHNICAL SUPPORT AND RESOURCES INDEX smartbear.com TestComplete by SmartBear Software
5 Introducing Automated Testing and TestComplete 5 Introducing Automated Testing and TestComplete Automated Testing Software testing is the process of investigating an application and finding errors in it. The difference between testing and simply exploring is that testing involves comparing the application s output to an expected standard and determining whether the application functions as expected. In other words, the tester may need not only to ensure that the application displays a list of values, but also to verify that the list contains the appropriate values. So, the basic test sequence includes Defining the expected output. Performing test actions (feeding the appropriate input). Gathering the application output and comparing it to expected result (baseline data). Notifying developers or managers if the comparison fails. Automated testing is the automatic execution of software testing by a special program with little or no human interaction. Automated execution guarantees that no test action will be skipped; it relieves testers of having to repeat the same boring steps over and over. TestComplete provides special features for automating test actions, creating tests, defining baseline data, running tests and logging test results. For example, it includes a special recording tests feature that lets you create tests visually. You just need to start recording, perform all the needed actions against the tested application and TestComplete will automatically convert all the recorded actions to a test. TestComplete also includes special dialogs and wizards that help you automate comparison commands (or checkpoints) in your tests. Test Types TestComplete supports various testing types and methodologies: unit testing, functional and GUI testing, regression testing, distributed testing and others (see Different Ways of Testing in TestComplete Help). In this tutorial, we will create functional tests - the kind that is used most often. Functional tests check the interface between the application on one side, and the rest of the system and users on the other side. They verify that the application functions as expected. A typical functional test consists of test commands that perform various actions such as simulating clicks and keystrokes, running test commands in a loop and verifying objects contents. In TestComplete, functional tests can be created in the form of keyword tests and scripts. Tests of both kinds can be recorded or created from scratch with built-in editors. Creating keyword tests is visual, easy and does not require a programming background. Scripting requires understanding script commands, but gives you the ability to create more powerful and flexible tests. TestComplete supports scripting in VBScript, JScript, Python, DelphiScript, C++Script and C#Script, so you can create scripts in the language you know best. In this tutorial, we will use the keyword testing feature SmartBear Software
6 6 Introducing Automated Testing and TestComplete TestComplete Projects and Project Items TestComplete operates with test projects and project suites. A project is a starting point for creating tests. It 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 multiple tests and contains a cumulative log of all test runs since the start of the project. One project could contain all the tests for your application. For complex applications, you may choose to devote a project to just one part of the application, and other projects to other parts (normally, modules). Related projects can be united into a project suite that contains one or more projects. TestComplete automatically generates a project suite when you create a new project. You can also create empty project suites and then use TestComplete s dialogs to fill the suite with the desired project files. Project items are project elements that perform or assist in performing various testing operations. You can view and manage projects, project suites and project items in TestComplete s Project Explorer panel: For complete information on project items available in TestComplete, see About Project Items in TestComplete Help. smartbear.com TestComplete by SmartBear Software
7 Introducing Automated Testing and TestComplete 7 TestComplete User Interface Here is a sample image of TestComplete s main window: As you can see, TestComplete s user interface is organized into a number of panels. The Project Explorer panel (on the left of the window) displays the contents of projects and the project suite. It also provides links to the test log nodes. The Workspace panel is your working desktop: it displays the project s and project items editors, where you create and modify tests and view test results. For instance, on the image above you can see the Keyword Test editor opened in the Workspace. Below the editor there is a Test Visualizer panel that displays images which the test engine captured during recording for test commands. These images help you understand the actions which test commands perform. Besides the Project Explorer, Workspace and Test Visualizer, TestComplete contains other panels. For example, the Watch List, Locals, Breakpoints and Call Stack panels are used for test debugging. The To Do panel manages a list of tasks to be done and the Code Explorer panel provides a convenient way to explore script contents and navigate through script units. The Object Browser panel holds one major TestComplete function that does not belong to a specific project: it shows the list of all processes and windows that exist on the machine. It also lists the processes of mobile applications, if the mobile device is connected and the application is prepared in a special way. For each process and window it shows methods and properties accessible externally through TestComplete facilities. In other words, the Object Browser tells you which objects, methods and properties are available for testing, and how to get to them. See Exploring Application Properties in TestComplete Help SmartBear Software
8 8 Introducing Automated Testing and TestComplete To learn about a panel, click within this panel and then press F1. This will open the panel s description. You use menus and toolbars to command TestComplete to perform certain actions. Its menu subsystem is similar to the menus and toolbars of Microsoft Visual Studio and other popular Windows applications. You can change the toolbars location, move items from one menu or toolbar to another, hide items, add hidden items back and perform other tasks. For more information, see Working With TestComplete Toolbars and Menus in TestComplete Help. TestComplete Test Object Model The object structure is shown in the Object Browser panel: Note: The images in this topic demonstrate the object model of desktop applications. The object model of web and mobile applications is similar. TestComplete uses a tree-like model for test objects. The root node of the tree is Sys, while for mobile applications, the root node is Mobile. Process objects correspond to applications running in the operating system. We use the term process rather than application because it corresponds to the concept of processes in Windows documentation. smartbear.com TestComplete by SmartBear Software
9 Introducing Automated Testing and TestComplete 9 A process object s name includes the name of the process executable and its index (the index is used only if several application instances are running): The processes have child objects windows that correspond to top-level windows. These objects in their turn have other child window objects that correspond to controls. The window and control names depend on whether or not the test engine has access to internal methods and properties of the application under test. TestComplete works with applications of both types, but names their windows and controls in different ways. Black-box applications Applications that do not provide access to their internal methods and properties are called black-box applications. The name of each window of such applications includes the window s class name, the window s text or title (caption) and its index. Controls are named in the same manner as windows, because in terms of the operating system, a control is just another type of a window: 2015 SmartBear Software
10 10 Introducing Automated Testing and TestComplete White-Box Applications Applications that expose their internal objects, methods and properties to TestComplete are called white-box applications or Open Applications. They are marked with the icon in the Object Browser (see the image below). To address windows and controls of Open Applications, TestComplete uses the names that reflect the window or control type and the name defined in the application s sources. For instance, if you have a form named MainForm in a C# application created with the Microsoft WinForms library, then TestComplete will address this form as WinFormsObject("MainForm"): For detailed information on naming processes, windows and controls, see Naming Objects in TestComplete Help. Note: It is recommended that, whenever possible, your tests work with Open Applications rather than black-box applications. This enables the test engine to access the application s internal methods and properties, allowing you to create more powerful and flexible tests. Some applications like.net, WPF, Visual Basic, Java or Web are always open to TestComplete. Others may need to be compiled in a special way. For more information on this, see Open Applications in TestComplete Help. Checkpoints and Stores A typical test performs many comparisons. For instance, if a test simulates user actions for exporting an application s data to a file, you will need to check whether the file contains valid data. To perform this check, you will compare the resulting file with a baseline copy. This is only one example of a comparison that you may need to perform. Real-life tests include hundreds if not thousands of comparisons. Every form of testing (regression, unit, functional and so on) needs a validated reference during automation. With TestComplete you can easily add comparison commands (or checkpoints) to your tests. You can create checkpoints both during test recording and at design time. TestComplete offers checkpoints for comparing different types of data: images, files, object text and properties, XML documents, database tables, etc. TestComplete includes the Stores project item that is used to store baseline data for these checkpoints. This project item is a container for images, files and other elements that are stored along with the project for comparison purposes. The only exception is checkpoints that verify object properties: the baseline data for them is specified in tests. For more information on creating checkpoints and verification code, see About Checkpoints in TestComplete Help. smartbear.com TestComplete by SmartBear Software
11 Testing Desktop Applications 11 Testing Desktop Applications This tutorial explains the basics of testing desktop applications (that is, applications that run on desktop computers). The sections of this tutorial contain a description of how to create a test project in TestComplete, record and play back a simple test, and analyze the results. The test emulates user actions over the tested application and verifies some data. The verification commands are created during test recording. About Tested Application In our explanations we will use the Orders application that is shipped along with TestComplete. The application displays a list of orders and contains special functions for adding, deleting, modifying and exporting orders. The application is located in the following folder: On Windows 7, Windows Vista, Windows Server 2008 or later operating systems: C:\Users\Public\Public Documents\TestComplete 11 Samples\Open Applications On Windows XP or Windows Server 2003: 2015 SmartBear Software
12 12 Testing Desktop Applications C:\Documents and Settings\All Users\Shared Documents\TestComplete 11 Samples\Open Applications Note: Some file managers can display the Shared Documents and Public Documents folders as the Documents folder. The folder stores several Orders projects created with different compilers: C#, Visual C++, Visual Basic, Delphi, C++Builder, Swing and so on. We will use the Orders application created with Visual C#. 1. Creating a Test Project Let s create a new test project: 1. If you have a project or project suite opened in TestComplete, close it. To do this, choose File Close from TestComplete s main menu. 2. Select File New New Project from TestComplete s main menu. This will call up the Create New Project wizard: smartbear.com TestComplete by SmartBear Software
13 Testing Desktop Applications On the first page of the wizard, you can specify the project name and location. Enter Orders to the Project name edit box. TestComplete will automatically generate the project path and display it in the Location field. The project folder is used to store all information generated for or by the project: keyword tests, scripts, test logs, stores, and so on. You can change the project s folder in the Location box. In our example we will keep the folder name unchanged. You can also specify the project suite name and its actual location by clicking the More button and filling in the corresponding edit fields. In our example, we will keep the project suite name and location unchanged. 4. After you specify the project name and location, click Next to continue. We will continue working with the wizard and use its pages to add tested applications to the project and specify some other project settings. 2. Defining Applications to Test Each TestComplete project may have a list of tested applications. This is a way for you to keep track of which applications the project deals with and how they are configured for testing. It also allows TestComplete to launch all applications specified in the list or only those applications that are enabled to be launched manually via the context menu, or from a test. Of course, since projects are independent from each other, any application may be in the list of more than one project. There are several ways to add applications to the list of tested applications: You can do this with the Create New Project wizard during project creation. You can do this at any time later by using the context menu of the Project Explorer panel. TestComplete can also add an application to a project automatically during test recording. The recorder is smart enough to detect the start of an application through the command line, Windows Explorer or any other way. After the recording is over, TestComplete will add the tested application to the list and insert the Run Tested Application command into the recorded test. In this tutorial, we will add the tested application to the project by using the Create New Project wizard SmartBear Software
14 14 Testing Desktop Applications 1. After you specify the project name and location on the first page of the wizard, the wizard shows the second page where you can choose the type of your tested application: This will help TestComplete choose the appropriate run mode for your application. As you may remember, we are going to test the Orders application written in C# and shipped with TestComplete. This is an ordinary.net application that runs as a stand-alone executable. In the wizard, it falls under the Generic Windows Application category. So, click Generic Windows Application and, if you use Windows XP, click Next to continue. On Windows Vista and later versions of the operating system, the wizard will switch to the next page automatically after you click the category name. smartbear.com TestComplete by SmartBear Software
15 Testing Desktop Applications On the next page of the wizard, you can add the tested application to your test project: 2015 SmartBear Software
16 16 Testing Desktop Applications To do this: Click Add. This will invoke the Parameters dialog in which you specify the launch parameters of the application under test: In the Application text box of the dialog, click the button to invoke the standard dialog for opening files In this dialog, locate Orders.exe and then click Open. The path to the C# version of the Orders.exe file looks like this: o If you are working under Windows Vista, Windows 7 or later operating systems: C:\Users\Public\Public Documents\TestComplete 11 Samples\ Desktop\Orders\C#\bin\Release\Orders.exe o If you are working under Windows XP or Windows Server 2003: C:\Documents and Settings\All Users\Shared Documents\TestComplete 11 Samples\Desktop\Orders\C#\bin\Release\Orders.exe Note: Some file managers can display the Shared Documents and Public Documents folders as the Documents folder. After you choose Orders.exe, the Parameters dialog will display the full path to the application. In the dialog, click OK. smartbear.com TestComplete by SmartBear Software
17 Testing Desktop Applications 17 The wizard will display the Orders application s name and path in the list of tested applications. 3. Make sure that the Autorun check box in the list is selected. If it is selected, TestComplete will automatically launch the Orders tested application when you start recording tests. If the check box is clear, then to record user actions over your application you will have to launch the application manually. 4. After you add the application to the list and verify that the Autorun check box is selected, click Next to continue. In the next section, we will go through the rest pages of the wizard and complete the project creation SmartBear Software
18 18 Testing Desktop Applications 3. Completing the Project Creation On the previous step, we added our sample application, Orders, to the project s list of tested applications. Let s quickly go through the rest pages of the wizard and complete the project creation: 1. After you added tested applications to your project in the Create New Project wizard, the wizard displays the page where you can enable or disable TestComplete s Test Visualizer functionality: Test Visualizer captures information for test actions during test recording and playback. Depending on the selected options, Test Visualizer frames can contain screenshots only or screenshots along with information about the objects they contain. The Visualizer frames that were captured during recording help you better understand what the recorded test commands do, what is important when you have just started learning the product. The Visualizer frames captured during test execution let you easily determine what happens to the tested application or system at that time. This information is helpful when you are debugging errors. However, the images and test object data occupy hard disk space and in large projects they may be the reason of significant increase of the size of test result files. So, you can limit the amount of smartbear.com TestComplete by SmartBear Software
19 Testing Desktop Applications 19 collected data by capturing images only, or, if Visualizer is not needed, you may disable it and enable it at any time later using your project s settings. In our tutorial, we select Capture images only both for test recording and playback. Then, click Next to continue. 2. On the next page of the wizard, you can choose the scripting language to be used in your project. Every TestComplete project uses one of the supported scripting languages: VBScript, JScript, Python, DelphiScript, C++Script or C#Script. The scripting language is important even if you are not going to use script units in your project. Even if you are going to use only keyword tests, you may need to call code snippets or use script statements to specify operation parameters. The scripting language is also important because it defines the format of object names with which your tests will work, regardless of whether you are using scripts or keyword tests. The name format depends on the language syntax. For instance, in VBScript, Jscript and Python the name of the Notepad process looks like Process("Notepad"). In DelphiScript you should replace double quotes with single quotes, that is, Process('Notepad'); and in C++Script and C#Script, the word Process should be enclosed in brackets: ["Process"]("Notepad") SmartBear Software
20 20 Testing Desktop Applications For more information on choosing the scripting language, see Selecting the Scripting Language topic in TestComplete Help. In this tutorial, we will use VBScript. So, select VBScript on the page. On Windows Vista and later versions of the operating system, this will close the wizard. If you are using Windows XP, click Finish. TestComplete will create a new project, Orders.mds, and a project suite for it. It will then display the project suite s and the project s contents in the Project Explorer panel. Now we can create tests. 4. Creating a Test Planning a Test for the Orders Application The sample Orders application maintains a list of orders. Suppose we need to test whether the application s Edit Order form functions correctly and modifies data in the order list. In this case Test purpose: The test should check whether the Edit Order form saves the modified data and the changes are visible in the order list. Testing steps: Our test should simulate modifying the order s details and then verify the data in the order list. We will record a test simulating user actions over the application. For simplicity, our test will change only one property of one order. Checking and logging the test result: If the change made to the order has been saved correctly, it should be visible in the order list. To check this, our test will compare the data in the list with an expected value. We will add a special comparison command to the test for this. This command will post the comparison results to the test log, so we will see whether the verification failed or passed successfully. For more information on planning tests with TestComplete, see Planning Tests in TestComplete Help. Creating Tests in TestComplete TestComplete allows you to create tests in two ways. You can: Create tests manually Record tests When you create a test manually, you enter all the needed commands and actions that your test must perform via appropriate script objects or keyword test commands. This approach is very helpful when you need to create very powerful and flexible tests or if you have good experience in creating tests. However, creating tests manually requires a lot of time and does not prevent you from different problems. For example, while creating a test manually you must know the classes and names of your application's objects you want to work with. To solve such problems, TestComplete includes a special feature that lets you easily create tests. You can perform some actions against the tested application once and TestComplete will automatically recognize these actions and then convert them to script lines or keyword test operations. We call this feature smartbear.com TestComplete by SmartBear Software
21 Testing Desktop Applications 21 recording a test, because you create a test visually and in one sense you record the performed actions to a script or keyword test. It is a very useful approach and it does not require much experience in creating tests. So, in this tutorial we will demonstrate how to record tests with TestComplete. For more information, see the section below. Recording Tests in TestComplete The recording includes three steps: 1. You start recording by selecting Test Record Record Keyword Test or Test Record Record Script from TestComplete s main menu or from the Test Engine toolbar. You can also start recording by clicking Record a New Test on the Start Page. With TestComplete you can record tests of various kinds: keyword tests, scripts, low-level procedures and HTTP load testing tasks. The menu item that you use to start the recording defines the main recorded test: keyword test or script code. Other tests will be recorded after the recording is started. The main recorded test will contain special commands that will run these tests. After you command TestComplete to start the recording, it will switch to the recording mode and display the Recording toolbar on screen: The toolbar contains items that let you perform additional actions during the recording, pause or stop recording and change the type of the recorded test (keyword test, script code or low-level procedure). 2. After starting the recording, perform the desired test actions: launch the tested application (if needed), work with it by clicking command buttons, selecting menu items, typing text and so on. 3. After all the test actions are over, stop the recording by selecting Stop from the Recording toolbar. For complete information on test recording, see the Recording in TestComplete section in TestComplete Help. Recording Test for the Orders Application Let s now record a keyword test for the sample Orders application. The test will launch the application, load data in it, simulate clicks and keystrokes within the application s window and verify the application s data SmartBear Software
22 22 Testing Desktop Applications Note: Do not switch to the TestComplete help during the recording. The recording engine traces and records all user actions, so the recorded test will contain commands that simulate switching. Let s start recording: To see the instructions, you can print them before starting the record. Or, if you have two monitors, you can move the TestComplete help system window to the other monitor. We would like to mention that after you start the recording, TestComplete's main window is automatically minimized, and it cannot be activated until you stop the recording. If you try to switch to the TestComplete window when the recording is in process, TestComplete displays a TestComplete is in recording mode and cannot be activated. message. To continue creating a test, click Continue in this message, and TestComplete will resume the recording. Note that when the message is shown, TestComplete automatically pauses the recording, and all your actions against the tested application are not recorded. 1. When creating a new project, TestComplete automatically creates an empty keyword test in this project. Let s record test commands into this test. To start recording, select the Append to Test item on the test editor s toolbar: TestComplete will display the Recording toolbar on screen. If the Interactive Help panel is visible, TestComplete will also show information about the recording in it. By default, the Recording toolbar is collapsed: smartbear.com TestComplete by SmartBear Software
23 Testing Desktop Applications 23 Click the arrow button to expand the Recording toolbar and view all its buttons: 2. After you start the recording, TestComplete automatically launches the Orders tested application that we added to the project s list of tested applications. This happens, because we enabled the application s Autorun setting when we were adding the application to the project (see Defining Applications to Test in TestComplete Help). If we had disabled this property, we would have had to launch the application manually. You can do this by selecting the Run command from the Recording toolbar: You can also launch the application from Windows Explorer or any other file manager. If the application is not on the list of tested applications, TestComplete will add it there. TestComplete records the application start using a special application launch test command. You will see this command later, when we will analyze the recorded test SmartBear Software
24 24 Testing Desktop Applications 3. Wait until the application starts and the application s main window is shown: If the Interactive Help panel is visible, resize or move it so that it does not overlap the application s window. Your actions on this panel are not recorded. 4. Switch to the Orders application and select File Open from its main menu. This will bring up the standard Open File dialog. 5. In the dialog, open the MyTable.tbl file. The location of this file depends on the operating system you use. On Windows Vista, Windows 7 and later operating systems it resides in the C:\Users\Public\Public Documents\TestComplete 11 Samples\Open Applications folder. On other operating systems, the file is located in the C:\Documents and Settings\All Users\Shared Documents\TestComplete 11 Samples\Open Applications folder. Note: Some file managers can display the Shared Documents and Public Documents folders as the Documents folder. It is recommended to type the fully-qualified file name into the File name box of the Open File dialog. Typing instead of using the mouse will help you avoid problems if the test is played back on a different operating system or if the Open File dialog displays a different initial folder when the test is played back later. smartbear.com TestComplete by SmartBear Software
25 Testing Desktop Applications After specifying the file in the File name box, press Open. The Orders application will load data from the file and display this data in the application s main window. 7. Click the Samuel Clemens row in the list of orders SmartBear Software
26 26 Testing Desktop Applications 8. Move the mouse cursor to the Orders toolbar and press Edit order. This will call the Order dialog: 9. In the dialog, click within the Customer Name text box to move the insertion point there. Right-click within the Customer Name box and choose Select All from the context menu and then enter Mark Twain as the customer name. 10. Click OK to close the dialog. TestComplete will update the customer list in the application s main window. 11. Now let s insert a comparison command into our test. It will verify that the application s customer list displays the modified name - Mark Twain. We call the comparison commands checkpoints. TestComplete offers various types of checkpoints that are suitable for verifying different types of data (see Checkpoints section in TestComplete Help). One of the most frequently used checkpoints is a Property checkpoint. It is used to check data of applications controls. We will use this checkpoint in our tutorial. smartbear.com TestComplete by SmartBear Software
27 Testing Desktop Applications 27 Select Create Property Checkpoint from the Checkpoint drop-down list of the Recording toolbar: This will invoke the Property Checkpoint wizard. It will guide you through the process of checkpoint creation: 2015 SmartBear Software
28 28 Testing Desktop Applications On the first page of the wizard, click the target glyph ( ) with the left mouse button and keep the button depressed. Wait until the wizard minimizes and then drag the icon to the customer list of the Orders application. While you are dragging, TestComplete will highlight the controls and windows under the mouse cursor with the red frame. Release the mouse button when the target glyph is over the customer list and it is highlighted with the red frame: smartbear.com TestComplete by SmartBear Software
29 Testing Desktop Applications 29 After you release the mouse button, TestComplete will restore the wizard and display the name of the selected object in the Object box and the image of the object below it: Click Next to continue. The next page of the wizard displays a list of the selected object s properties. This list includes properties provided by TestComplete as well as properties defined by the tested application. For instance, our tested application was created in C#, so the list includes properties of the appropriate.net class. You can see them under the.net node. In our example the list contains only a basic set of properties. To view all available properties, click the View more members (Advanced view) link. TestComplete appends two groups of properties to the selected object: one group includes properties common for all tested windows and controls. You can see them under the Standard node. Another group includes properties that are specific to list-view controls (since the object we selected is a tree view control). The names of these properties start with the letter w. You can see them under the Extended node. To verify the data, we will use the witem property. It provides access to individual items of tree view controls SmartBear Software
30 30 Testing Desktop Applications Find the witem property in the list (it is under the node Extended). Click its Params button. The following window will pop up: In this window, specify the cell holding the Mark Twain string: Select Integer in the Type section Enter 5 into the Item box (5 is the index of the Mark Twain item in the tree view. Indexes are zero-based). Click OK. The test engine will retrieve the item s data and display it in the property list: smartbear.com TestComplete by SmartBear Software
31 Testing Desktop Applications 31 Click Next to continue SmartBear Software
32 32 Testing Desktop Applications On the next page of the wizard you can see the name of the property, whose value will be verified, the comparison condition and baseline data in the Value box: Click Finish to complete the checkpoint creation. TestComplete will append the checkpoint command to the recorded test. 12. Close the Orders window by clicking the X button on the window s caption bar. This will display the dialog asking if you want to save changes. Press No. Orders will close. 13. Press Stop on the Recording toolbar to stop the recording. TestComplete will process the recorded test commands and save them to a test. smartbear.com TestComplete by SmartBear Software
33 Testing Desktop Applications Analyzing the Recorded Test After you have finished recording, TestComplete opens the recorded keyword test for editing and displays the test s contents in the Keyword Test editor: The recorded test is similar to the test shown in the image above. Your actual test may differ from this one. For example, it may have other object names or window indexes if you have recorded the test on a Visual C++ or Delphi application. The test contains the commands that correspond to the actions you performed on the Orders application during the recording. We call the test commands operations SmartBear Software
34 34 Testing Desktop Applications Below the commands there is the Test Visualizer panel that displays images which TestComplete captured for operations during test recording: These images illustrate the recoded operations and help you better understand which action the operation performs. TestComplete captures images only for those operations that correspond to user actions (mouse clicks, typing text and so on). When you choose an operation in the editor, Test Visualizer automatically selects the appropriate image so you can easily explore the application state before the operation is executed. For more information on working with images, see the topics in the Test Visualizer section in TestComplete Help. smartbear.com TestComplete by SmartBear Software
35 Testing Desktop Applications 35 To view the needed image closely, double-click it in the Test Visualizer panel. The Visualizer Frame window will appear. This window lets you perform additional actions against the captured images. For example, you can zoom them in and out, save them to a file, navigate through the images, and so on. For more information, see the window description in TestComplete Help. The first operation in the test is Run TestedApp. It is used to launch the tested application (in our case, it is the Orders application) from a keyword test. TestComplete automatically records this operation when it launches the application automatically or detects an application launch from the Recording toolbar or somewhere from the operating system s UI SmartBear Software
36 36 Testing Desktop Applications The next operation corresponds to the selection of the File Open menu item. The next operation simulates opening the file via the Open File dialog: If your computer is running Windows Vista, Windows 7 or later operating system, TestComplete records a sequence of operations that simulate actions you perform when working with the Open File dialog s controls. Note: It is recommended to type the full name of the file you want to open in the File name box of the Open file dialog instead of navigating to the file using the dialog s controls. This approach lets you record a test that will be executed successfully regardless of the operating system, navigation bars and panels available in the dialog and of the path displayed in the dialog. If your test contains a sequence of operations simulating actions over the Open File dialog, you can modify the test and manually replace those operations with the OpenFile method call. After that, there follow operations that simulate your actions with the application s main window and the Order form: For more information on simulating mouse events, keyboard input and other actions from your scripts, see Simulating User Actions in TestComplete Help. smartbear.com TestComplete by SmartBear Software
37 Testing Desktop Applications 37 Then there is the comparison operation that we added during test recording: Finally, there is the operation that closes the Orders application and the operation that simulates the No button press in the message box. As you can see, TestComplete automatically organizes the operations into groups that correspond to the processes and windows that you worked with. Grouping makes the test structure easier to understand and also provides some information on the object hierarchy that exists in the application under test. We recorded user actions on one process (Orders). So, we have only one process group node. It contains all of the actions that you simulated on the process windows and controls. The actions that we performed on windows and controls of the Orders process are organized into a number of window grouping nodes: You may notice that the names of the tested process and its windows and controls differ from the names that we saw in the Object Browser panel in one of the previous steps. For instance, in the Object Browser the tested process was named Process("Orders") while in the test it is called Orders; the main window was called WinFormsObject("MainForm") while in the test it is called MainForm, and so on. There is a logical reason for this: By default TestComplete automatically generates and uses custom names for the objects that you worked with during test recording. Generating and assigning custom names is called name mapping. TestComplete maps the names because the default names may be difficult to understand. It may be hard to determine which window or control corresponds to a name. Using mapped names makes the test 2015 SmartBear Software
38 38 Testing Desktop Applications easier-to-understand and more stable. For more information on mapping names, see Name Mapping in TestComplete Help. 6. Running the Recorded Test Now we can run our simple test to see how TestComplete simulates user actions. Before running a recorded test, make sure it starts with the same initial conditions as the recording did. For instance, the test almost always requires the tested application to be running. So, before simulating the user actions, you should launch the application. In our case, to launch our tested application, we use the Run TestedApp operation at the beginning of the test, so the test will launch it for us. Alternatively, you can run the tested application manually from TestComplete s IDE. To run the recorded test, simply click Run Test on the test editor s toolbar: The test engine will minimize TestComplete s window and start executing the test s commands. In our case, the test will simply repeat your recorded actions. Note: Don t move the mouse or press keys during the test execution. Your actions may interfere with actions simulated by TestComplete and the test execution may go wrong. After the test execution is over, TestComplete will restore its window and display the test results. In the next step we will analyze them. Some notes about the test run: The created tests are not compiled into an executable for test runs. You run the tests directly from TestComplete. To run tests on computers that do not have TestComplete installed, you can use a resource-friendly utility called TestExecute. You can also export script code (if you use it) to an external application and run it there. For more information on this, see Connected and Self-Testing Applications in TestComplete Help. smartbear.com TestComplete by SmartBear Software
39 Testing Desktop Applications 39 During test execution, TestComplete displays an indicator in the top right corner of the screen: The indicator displays messages informing you about the simulated test actions. TestComplete executes the test commands until the test ends. You can stop the execution at any time by pressing menu. Stop on the Test Engine toolbar or select Test Stop from TestComplete s main You can pause the test execution by clicking Pause. During the pause, you can perform any actions needed. For instance, you can explore the test log or check the test s variables and objects using TestComplete s Watch List or Locals panel or the Evaluate dialog (see Debugging Tests in TestComplete Help). To launch the test we used the Run Test button on the test editor s toolbar. This is only one of several possible ways to run the test. You can also run tests from the Project Explorer, or from another test. You can also use the Test Items page of the project editor to create a batch run. For complete information on running tests in TestComplete, on project settings that affect the runs and on the test execution, see Running Tests in TestComplete Help SmartBear Software
40 40 Testing Desktop Applications 7. Analyzing Test Results TestComplete keeps a complete log of all operations performed during testing. The links to test results are shown in the Project Explorer panel under the Project Suite Logs Orders Log node. This is the primary workspace for looking up the test history of the project and project suite. Each node corresponds to a test run. An image to the left of the node specifies whether the corresponding test run passed successfully: Note that TestComplete automatically adds nodes for the last results after the test execution is over. That is, the results are not displayed when the test is running (you can view intermediate results if you pause the test execution). Since we have run only one test so far, we have only one log node in the Project Explorer. By default, TestComplete automatically opens the contents of this node in the Workspace panel. You can also view the log at any time. To do this, right-click the desired result in the Project Explorer panel and choose Open from the context menu. smartbear.com TestComplete by SmartBear Software
41 Testing Desktop Applications 41 In our example, the log is as follows The log window shows the results of one test run at a time. On the left side of the window, there is a tree-like structure of the tests that were executed during the run; the node of each of these tests can be selected to view their results. For our example, we have run only one test, so in our case this tree only contains one node. The node s icon indicates whether the test passed successfully or failed. The test log contains error, warning, informative and other types of messages. The icon on the left indicates the message type. Using the check boxes at the top of the message list you can hide or view messages by type. For each message, the log also shows the time that each action was performed. You can see it in the Time column. TestComplete may post additional text and images along with the message. To view them, simply select the desired message in the log and look in the Additional Information and Picture panes that are below the message list. For instance, on the image above the Picture pane displays the screenshots associated with The menu item 'Orders Edit order...' was clicked message. The Picture panel displays the images that show the expected and actual application state before executing the selected test command ( Expected is the image that was captured for the command during test recording, actual means the image that was captured during test run.) The test log includes a special button that lets you compare the images and easily see the difference. This simplifies the search for errors that may occur in your test. For more information, see topics of the Test Visualizer section in TestComplete Help. The log s Call Stack pane displays the hierarchy of test calls that led to posting the selected message to the log SmartBear Software
42 42 Testing Desktop Applications The log s Performance Counters pane displays values of the performance counters monitored during the test run. The values are shown in the form of graphs. To view a test operation that posted a message to the log, double-click the desired message in the log. TestComplete will open the keyword test in the editor and highlight the appropriate operation. For instance, if you double-click the The menu item Orders Edit order was clicked message in the log, TestComplete will highlight the keyword test operation that performed this action: For detailed information on the test log panels, on posting messages to the log and on working with the results, see Test Results section in TestComplete Help. Note: The log that we described is typical for TestComplete keyword tests and scripts. Tests of other types may form a log of a different structure. For detailed information about these logs, see the description of the appropriate project item, or simply click within the log page and press F1. Resolving Errors Your test may fail. There can be several possible reasons for this. For instance, developers could change the application s behavior, the recognition attributes of windows and control change and make the test engine fail to find the needed objects, a third-party application may overlap windows of your application and make the test engine fail to simulate actions on them, and so on. One of the most typical reasons which novice users face is the difference in the application s state during the test creation and playback. To avoid this problem, make sure that the initial conditions of the test run correspond to those you had when creating the test. For instance, if the tested application had been running before you recorded the test, it also must be running before you run the test; if the tested web page was opened on the second tab of your web browser when you recorded your test, it should also be opened on the second tab when you run the test, and so on. For information on searching for the cause of errors and resolving typical problems, see Handling Playback Errors in TestComplete Help. smartbear.com TestComplete by SmartBear Software
43 Testing Web Applications 43 Testing Web Applications This section provides a step-by-step tutorial that describes how to create a test project in TestComplete, record and play back a simple web test, and analyze the results. The test will emulate user actions over a web page and verify some data. Verification commands will be created during test recording. About the Tested Web Page In our explanations we will use the sample Web Orders application that can be found on our web site: This application displays a list of orders and contains special functions for adding, deleting, modifying and exporting orders. 1. Creating a Test Project Let s create a new test project: 1. If you have a project or project suite opened in TestComplete, close it. To do this, choose File Close from TestComplete s main menu SmartBear Software
44 44 Testing Web Applications 2. Select File New New Project from TestComplete s main menu. This will call up the Create New Project wizard: 3. On the first page of the wizard, you can specify the project name and location. Enter WebOrders into the Project name edit box. TestComplete will automatically generate the project path and display it in the Location field. The project folder is used to store all information generated for or by the project: keyword tests, scripts, test logs, stores, and so on. You can change the project s folder in the Location box. In our example we will keep the folder name unchanged. You can also specify the project suite name and its actual location by clicking the More button and filling in the corresponding edit fields. In our example, we will keep the project suite name and location unchanged. 4. After you specify the project name and location, click Next to continue. We will continue working with the wizard and use its pages to select the needed project type and specify some project settings. smartbear.com TestComplete by SmartBear Software
45 Testing Web Applications Selecting a Test Type Each TestComplete project may have different sets of project items added to it. However, creating a certain type of a test (a web test, a test for Adobe AIR applications and so on) requires a certain number of added items. There are several ways to add all required project items to the project: You can do that with the Create New Project wizard while creating the project. In this case, TestComplete will generate the project structure that corresponds to the selected test type right after you finish creating the project. You can do that at any time later manually by adding needed items via the context menu of the Project Explorer panel. In this tutorial, we will generate the required project structure by using the Create New Project wizard. 1. After you specify the project name and location on the first page of the wizard, the wizard shows the second page where you can choose the type of your tested application: As you may remember, we are going to test the Web Orders application that is located on the web page. In the wizard, it falls under the Web category. So, click Functional testing of web pages and, if 2015 SmartBear Software
46 46 Testing Web Applications you use Windows XP, click Next to continue. On Windows Vista and later versions of the operating system, the wizard will switch to the next page automatically after you click the category name. In the next topic, we will go through the rest pages of the wizard and complete the project creation. 3. Completing the Project Creation In the previous step, we decided on the needed test type. Now, let s quickly go through the rest of the wizard s pages and complete the project creation: 1. After you have specified the type of your tested application, the wizard displays the page where you can enable or disable TestComplete s Test Visualizer functionality: Test Visualizer captures information for test actions during test recording and playback. Depending on the selected options, Test Visualizer frames can contain screenshots only or screenshots along with information on the objects they contain. The Visualizer frames that were captured during recording help you better understand what the recorded test commands do, what is important when you have just started learning the product. smartbear.com TestComplete by SmartBear Software
47 Testing Web Applications 47 The Visualizer frames captured during test execution let you easily determine what happens to the tested application or system at that time. This information is helpful when you are debugging errors. However, the images and object data occupy hard disk space and in large projects they may be the reason of significant increase of the size of test result files. So, you can limit the amount of collected data by capturing images only, or, if Visualizer is not needed, you may disable it and enable it at any time later using your project s settings. In our tutorial, we select Capture images only both for test recording and for playback. Then, click Next to continue. 2. On the next page of the wizard, you can choose the scripting language to be used in your project. Every TestComplete project uses one of the supported scripting languages: VBScript, JScript, Python, DelphiScript, C++Script or C#Script. The scripting language is important even if you are not going to use script units in your project. Even if you are going to use only keyword tests, you may need to call code snippets or use script statements to specify operation parameters SmartBear Software
48 48 Testing Web Applications The scripting language is also important because it defines the format of object names with which your tests will work, regardless of whether you are using scripts or keyword tests. The name format depends on the language syntax. For instance, in VBScript, Jscript and Python, the name of the Internet Explorer process looks like Browser("iexplore"). In DelphiScript you should replace double quotes with single quotes, that is, Browser('iexplore'); and in C++Script and C#Script, the word Process should be enclosed in brackets: ["Browser "]("iexplore"). For more information on choosing the scripting language, see Selecting the Scripting Language in TestComplete Help. In this tutorial, we will use VBScript. So, select VBScript on the page. On Windows Vista and later versions of the operating system, this will close the wizard. If you are using Windows XP, click Finish. TestComplete will create a new project, WebOrders.mds, and a project suite for it. It will then display the project suite s and the project s contents in the Project Explorer panel. Now, we need to prepare the web browser for further test steps. 4. Preparing Web Browser Creating web tests with TestComplete requires that the web browser used for recording and playing back the test be configured in a special way. Also, it is recommended that you eliminate browser-specific behavior to make the cross-browser testing easier. For more information on configuring your browser, refer to the Preparing Web Browsers section in TestComplete Help. After you have configured the browser settings as it is described in the section, you can create tests. 5. Creating a Test Planning a Test for the Web Orders Application The sample Web Orders application works with a list of orders. Suppose you need to test whether the application s Edit Order page functions properly and modifies data in the order list. In this case Test purpose: The test should check whether the Edit Order page saves the modified data and the changes are visible in the order list. Testing steps: Our test should simulate modifying the order s details and then verify the data in the order list. We will record a test simulating user actions over the application. For simplicity, our test will change only one property of one order. Checking and logging the test result: If the change made to the order has been saved correctly, it should be visible in the order list. To check this, our test will compare the data in the list with an expected value. We will add a special comparison command to the test for this. This command will post the comparison results to the test log, so we will see whether the verification failed or passed successfully. For more information on planning tests with TestComplete, see Planning Tests in TestComplete Help. smartbear.com TestComplete by SmartBear Software
49 Testing Web Applications 49 Creating Tests in TestComplete TestComplete provides two approaches to creating tests. You can: Create tests manually Record tests When you are creating a test manually, you enter all the needed commands and actions that your test must perform via appropriate script objects or keyword test commands. This approach is very helpful when you need to create very powerful and flexible tests or if you are experienced in creating tests. However, creating tests manually requires much time and does not prevent you from different kinds of problems. For example, when creating tests manually, you must know the classes and names of your application's objects you want to work with. To solve such problems, TestComplete includes a special feature that lets you create tests easily: you just perform some actions against the tested application, TestComplete recognizes these actions and then converts them to appropriate script lines or keyword test operations. We call this feature "recording a test", because you create a test visually and in one sense you record your actions as script or a keyword test. It is a very useful approach and it does not require much experience in creating tests. So, in this tutorial, we demonstrate how to record tests with TestComplete. For more information on recording tests, see the section below. Recording Tests in TestComplete The recording includes three steps: 1. You start recording by selecting Test Record Record Keyword Test or Test Record Record Script from TestComplete s main menu or from the Test Engine toolbar. You can also start recording by clicking Record a New Test on the Start Page. With TestComplete you can record tests of various kinds: keyword tests, scripts and low-level procedures. The menu item that you use to start the recording defines the main recorded test: keyword test or script code. Other tests will be recorded after the recording is started. The main recorded test will contain special commands that will run these tests. After you command TestComplete to start the recording, it will switch to the recording mode and display the Recording toolbar on screen: The toolbar contains items that let you perform additional actions during the recording, pause or stop recording and change the type of the recorded test (from the keyword test to script code, or vice versa). 2. After you start recording, perform the desired test actions: launch the desired browser and load a page to it (if needed), then click some command buttons on the page, select menu items, type some text and so on SmartBear Software
50 50 Testing Web Applications 3. After all the test actions are over, stop the recording by selecting Stop from the Recording toolbar. For complete information on test recording, see Recording in TestComplete in the Help. Recording a Test for the Web Orders Application Now let s record a keyword test for the sample Web Orders application. The test will launch the browser, load the specified page to it, simulate clicks and keystrokes within the application s window and verify the application s data. Note: Do not switch to the TestComplete help during the recording. The recording engine traces and records all user actions, so the recorded test will contain commands that simulate switching. Let s start recording: To see the instructions, you can print them before starting the record. Or, if you have two monitors, you can move the TestComplete help system window to the other monitor. 1. When creating a new project, TestComplete automatically creates an empty keyword test in this project. Let s record test commands into this test. To start recording, select the Append to Test item on the test editor s toolbar: TestComplete will display the Recording toolbar on screen. If the Interactive Help panel is visible, TestComplete will also show information about the recording in it. By default, the Recording toolbar is collapsed: smartbear.com TestComplete by SmartBear Software
51 Testing Web Applications 51 Click the arrow button to expand the Recording toolbar and view all its buttons: 2. Launch the desired browser and navigate it to the web page. TestComplete records the browser launch by using a special test command. You will see the command later when we analyze the recorded test. 3. Wait until the Internet browser starts and the application s login window is shown: If the Interactive Help panel is visible, resize or move it so that it does not overlap the application s window. Your actions on this panel are not recorded. 4. Log in to the application using the information shown at the bottom of the page: Username: Tester Password: test Click Login to switch to the main page of the application SmartBear Software
52 52 Testing Web Applications 5. Now, the browser shows the default page of the application - the page that contains all the existing orders. Now, let's modify one of the. For this purpose, click the Edit icon next to the order made by Samuel Clemens. This will open the Edit Order page. 6. In the window, click within the Customer name text box and enter Mark Twain as the customer name. 7. Click Update to close the editing page. The application will update the customer list shown in the main window. 8. Now let s insert a comparison command into our test. It will verify that the application s customer list displays the modified name - Mark Twain. We call the comparison commands checkpoints. TestComplete offers various types of checkpoints that are suitable for verifying different types of data (see Checkpoints). One of the most frequently used checkpoints is a Property checkpoint. It is used to check data of applications controls. We will use this checkpoint in our tutorial. smartbear.com TestComplete by SmartBear Software
53 Testing Web Applications 53 Select Create Property Checkpoint from the Checkpoint drop-down list of the Recording toolbar: This will invoke the Property Checkpoint wizard. It will guide you through the process of checkpoint creation: 2015 SmartBear Software
54 54 Testing Web Applications On the first page of the wizard, click the target glyph ( ) with the left mouse button and keep the button pressed. Wait until the wizard minimizes and then drag the icon to the cell that contains the Mark Twain string. While you are dragging, TestComplete will highlight the controls and windows under the mouse cursor with the red frame. Release the mouse button when the target glyph is over the first cell of the Name column and when it is highlighted with a red frame: smartbear.com TestComplete by SmartBear Software
55 Testing Web Applications 55 After you release the mouse button, TestComplete will restore the wizard and display the name of the selected object in the Object box and the image of the object below it: Click Next to continue SmartBear Software
56 56 Testing Web Applications The next page of the wizard displays a list of the selected object s properties. This list includes properties provided by TestComplete as well as properties defined by the tested application. To view all available properties, click the View more members (Advanced View) link. TestComplete appends three groups of properties to the selected object: one group includes properties common for all tested windows and controls. You can see them under the Standard node. Another group includes properties that are specific to grid controls (since the object we selected is a grid control). You can see these properties under the Extended node. The third group includes the properties provided by the Internet browser. You can see these properties under the node with the name of the used browser. To verify the data, we will use the contenttext browser-independent property. It provides access to the text shown in the selected cell and helps you avoid problems with playing back the test in different browsers. Find the contenttext property in the list. Select this property and then click Next to continue. smartbear.com TestComplete by SmartBear Software
57 Testing Web Applications 57 On the next page of the wizard you can see the name of the property, whose value will be verified, the comparison condition and baseline data in the Value box: Click Finish to complete the checkpoint creation. TestComplete will append the checkpoint command to the recorded test. 9. Click the Logout link in the upper-right corner of the page. 10. Close the Internet browser by clicking the X button on its caption bar. 11. Press Stop on the Recording toolbar to stop the recording. TestComplete will process the recorded test commands and save them to a test SmartBear Software
58 58 Testing Web Applications 6. Analyzing the Recorded Test After you have finished recording, TestComplete opens the recorded keyword test for editing and displays the test s contents in the Keyword Test editor: The recorded test is similar to the test shown in the image above. Your actual test may differ from this one. For example, it may contain some unnecessary clicks. The test contains the commands that correspond to the actions you performed on the Web Orders application during the recording. We call the test commands operations. smartbear.com TestComplete by SmartBear Software
59 Testing Web Applications 59 Below the commands there is the Test Visualizer panel that displays images which TestComplete captured for operations during test recording: These images illustrate the recorded operations and help you better understand which action the operation performs. TestComplete captures images only for those operations that correspond to user actions (mouse clicks, typing text and so on). When you choose an operation in the editor, Test Visualizer automatically selects the appropriate image so you can easily explore the application state before the operation is executed. For more information on working with images, see the topics in the Test Visualizer section. The first operation in the test is Run Browser. It launches the Internet browser and navigates to the specified page from a keyword test. TestComplete automatically records this operation when it detects a browser launch. The second operation waits for the web page to load completely in the web browser. The highlighted operation waits for the Login page of the Web Orders application. The other operations of this type wait for other web pages SmartBear Software
60 60 Testing Web Applications The following operations work with the Login window. Then there are operations that simulate opening the Edit Order page and modifying the Customer Name field: For more information on simulating mouse events, keyboard input and other actions from your scripts, see Simulating User Actions in TestComplete Help. Then there is the comparison operation that we added during test recording: Finally, there are operations that log out from the Web Orders application and close the browser: As you can see, TestComplete automatically organizes the operations into groups that correspond to the processes and windows that you worked with. Grouping makes the test structure easier to understand and also provides some information on the object hierarchy that exists in the application under test. smartbear.com TestComplete by SmartBear Software
61 Testing Web Applications 61 We've recorded user actions for one browser. So, we have a single group node for the browser. It contains all the actions that you simulated on the browser windows and controls. The actions that you performed on different web pages are organized into a number of page group nodes: You may notice that the name of the Internet browser and the names of its pages and page elements differ from the names that you can see in the Object Browser panel. For instance, in the Object Browser, the name of the Internet browser is Browser("iexplore"), Browser("firefox"), Browser("chrome") or Browser("opera") (depending on which browser you use), while in the test, the Internet browser is simply called a browser. Another example - the Login page in the Object Browser is called Page(" while in the test, its name is much shorter: pageweborderslogin. There is a logical reason for this: by default TestComplete automatically generates and uses custom names for the objects that you worked with during test recording. Generating and assigning custom names is called name mapping. TestComplete maps the names because the default names may be difficult to understand. It may be hard to determine which window or control corresponds to a name. Using mapped names makes the test easier-to-understand and more stable. For more information on mapping names, see Name Mapping in TestComplete Help. 7. Running the Recorded Test Now we can run our simple test to see how TestComplete simulates user actions. Before running a recorded test, make sure the initial conditions are the same as those when you started recording. For instance, a web test almost always requires that an Internet browser be running and the needed page is open. In our case, to launch the browser and open the tested web page, we use the Run Browser operation at the beginning of the test. Also do not forget to log out from the WebOrders application SmartBear Software
62 62 Testing Web Applications To run the recorded test, simply click Run Test on the test editor s toolbar: The test engine will minimize TestComplete s window and start executing the test s commands. In our case, the test will simply repeat your recorded actions. Note: Don t move the mouse or press keys during the test execution. Your actions may interfere with actions simulated by TestComplete and the test execution may go wrong. After the test execution is over, TestComplete will restore its window and display the test results. In the next step we will analyze them. Some notes about the test run: The created tests are not compiled into an executable for test runs. You run the tests directly from TestComplete. To run tests on computers that do not have TestComplete installed, you can use a resource-friendly utility called TestExecute. You can also export script code (if you use it) to an external application and run it there. For more information on this, see Connected and Self-Testing Applications in TestComplete Help. During test execution, TestComplete displays an indicator in the top right corner of the screen: The indicator displays messages informing you about the simulated test actions. TestComplete executes the test commands until the test ends. You can stop the execution at any time by pressing Stop on the Test Engine toolbar or in the indicator, or by selecting Test Stop from TestComplete s main menu. You can pause the test execution by clicking Pause. During the pause, you can perform any actions needed. For instance, you can explore the test log or check the test s variables and objects using TestComplete s Watch List or Locals panel or the Evaluate dialog (see Debugging Tests in TestComplete Help). For complete information on running tests in TestComplete, on project settings that affect the runs and on the test execution, see Running Tests in TestComplete Help. smartbear.com TestComplete by SmartBear Software
63 Testing Web Applications Analyzing Test Results TestComplete keeps a complete log of all operations performed during testing. The links to test results are shown in the Project Explorer panel under the Project Suite Logs WebOrders Log node. This is the primary workspace for looking up the test history of the project and project suite. Each node corresponds to a test run. An image to the left of the node specifies whether the corresponding test run passed successfully: Note that TestComplete automatically adds nodes for the last results after the test execution is over. That is, the results are not displayed when the test is running (you can view intermediate results if you pause the test execution). Since we have run only one test so far, we have only one log node in the Project Explorer. By default, TestComplete automatically opens the contents of this node in the Workspace panel. You can also view the log at any time. To do this, right-click the desired result in the Project Explorer panel and choose Open from the context menu SmartBear Software
64 64 Testing Web Applications In our example, the log is as follows The log window shows the results of one test run at a time. On the left side of the window, there is a tree-like structure of the tests that were executed during the run; the node of each of these tests can be selected to view their results. For our example, we have run only one test, so in our case this tree only contains one node. The node s icon indicates whether the test passed successfully or failed. The test log contains error, warning, informative and other types of messages. The icon on the left indicates the message type. Using the check boxes at the top of the message list you can hide or view messages by type. For each message, the log also shows the time that each action was performed. You can see it in the Time column. TestComplete may post additional text and images along with the message. To view them, simply select the desired message in the log and look in the Additional Info and Picture panes that are below the message list. The Picture panel displays the images that show the expected and actual application state before executing the selected test command ( Expected is the image that was captured for the command during test recording, actual means the image that was captured during test run.) The test log includes a special button that lets you compare the images and easily see the difference. This simplifies the search for errors that may occur in your test. For more information, see topics of the Test Visualizer section in TestConlete Help. The log s Call Stack pane displays the hierarchy of test calls that led to posting the selected message to the log. smartbear.com TestComplete by SmartBear Software
65 Testing Web Applications 65 The log s Performance Counters pane displays values of the performance counters monitored during the test run. The values are shown in the form of graphs. To view a test operation that posted a message to the log, double-click the desired message in the log. TestComplete will open the keyword test in the editor and highlight the appropriate operation. For instance, if you double-click the The button was clicked with the left mouse button message in the log, TestComplete will highlight the keyword test operation that performed this action: For detailed information on the test log panels, on posting messages to the log and on working with the results, see the About Test Log section in TestComplete Help. Note: The log that we described is typical for TestComplete keyword tests and scripts. Tests of other types may form a log of a different structure. For detailed information about these logs, see the description of the appropriate project item, or simply click within the log page and press F1. Resolving Errors Your test may fail. There can be several possible reasons for this. For instance, developers could change the application s behavior, the recognition attributes of windows and control change and make the test engine fail to find the needed objects, a third-party application may overlap windows of your application and make the test engine fail to simulate actions on them, and so on. One of the most typical reasons which novice users face is the difference in the application s state during the test creation and playback. To avoid this problem, make sure that the initial conditions of the test run correspond to those you had when creating the test. For instance, if the tested application had been running before you recorded the test, it also must be running before you run the test; if the tested web page was opened on the second tab of your web browser when you recorded your test, it should also be opened on the second tab when you run the test, and so on. For information on searching for the cause of errors and resolving typical problems, see Handling Playback Errors in TestComplete Help SmartBear Software
66 66 Testing Web Applications 9. Running the Test in Multiple Browsers After you make sure that the test is executed successfully in the browser you used for recording, you can easily modify the test so that it can be executed in different browsers (the so called cross-browser testing). This helps you ensure that the web application works correctly in various browsers. Now let s modify the test so that it runs in different browsers during the test run. Open the test in the Keyword Test editor. Right-click the Run Browser operation and select Make Browser Loop from the context menu. In the ensuing operation parameters dialog, select Iterate Through All Browsers and press Finish. This will convert the Run Browser operation into the Browser Loop operation. smartbear.com TestComplete by SmartBear Software
67 Testing Web Applications 67 Select all the test operations that go after the Browser Loop operation and click to move them inside the loop. Now these operations will be executed on each loop iteration. Here is how the resulting test should look like: Save the test by selecting File Save from TestComplete s main menu. Prepare and configure another browser as described in the Preparing Web Browsers section in TestComplete help. Now run the resulting test. TestComplete will repeat the test operations several times. Each time, the test actions will be performed in a different browser. The test log contains information about which browser was used and the results of the test operations performed in each browser SmartBear Software
68 68 Testing Web Applications For more information on cross-browser testing with TestComplete, see Cross-Browser Testing Overview in TestComplete help. smartbear.com TestComplete by SmartBear Software
69 Testing Android Applications 69 Testing Android Applications This tutorial explains how to test Android applications with TestComplete. We are going to prepare the testing environment for mobile testing, connect to a mobile device and deploy the tested application to it, create and run a simple test and analyze the results. The test will emulate user actions over the mobile application and verify some data. About Tested Application In our explanations we will use the Orders application that is shipped along with TestComplete. The application displays a list of orders and contains special functions for adding, deleting, modifying and exporting orders. The application should be deployed to the mobile device as described in the further steps of the tutorial SmartBear Software
70 70 Testing Android Applications 1. Preliminary Steps This section describes the preliminary actions you need to perform to prepare the environment for testing Android applications with TestComplete. Note: With TestComplete you can test mobile applications that are running on physical devices, emulators and Android-x86 virtual machines. You cannot run tests on Android Wear devices. In this section we will provide instructions on preparing for testing on a physical device. Preparatory actions for Android emulators and Android-x86 virtual machines are somewhat different (see Preparing Devices, Emulators and Virtual Machines section in TestComplete Help). With this exception, the rest of the testing actions are performed in the same manner. Installing Required Software Installing JDK and Android SDK To test Android applications, you need to download and install Java Development Kit or Java Runtime Environment (JDK or JRE) and Android SDK on your test computer. Note: If you already have the Android SDK and JDK (or JRE), go to step 5 1. Download the JDK from: 2. Run the downloaded installation and follow the instructions in the wizard. 3. Download the Android SDK from: You do not need Android Studio (the default download), you need the SDK only. To get the SDK, scroll to the Other Download Options section, go to the SDK Tools Only subsection and download the file installer_rxx-windows.exe. Run the downloaded installation and follow the instructions in the wizard. 4. When Android SDK is installed, launch Android SDK Manager: Click the Start menu and select All Programs Android SDK Tools SDK Manager. smartbear.com TestComplete by SmartBear Software
71 Testing Android Applications In the SDK Manager, select the following items: Android SDK Platform-tools Android SDK Build-tools Google USB Driver 6. Click Install packages, accept the license agreements and proceed with the installation. 7. Close the SDK Manager. Installing Device USB Drivers As stated above, in this tutorial we will automate tests on the physical device. In order to interact with the device, you need to install the device USB driver on the TestComplete computer. For instructions and driver download links, see OEM USB Drivers in Android documentation: Installing and Configuring TestComplete Plugins To be able to test Android applications, you need to have TestComplete s Mobile module installed. This module installs and enables the required plugins automatically. If the Mobile module is not available, you need to run the TestComplete installation in the Modify mode and select Mobile module for installation in the installation wizard. This would install and activate the required plugins. Configuring TestComplete 2015 SmartBear Software
72 72 Testing Android Applications Once the plugins are active, you may need to specify paths to JDK and Android SDK in TestComplete settings. The TestComplete installation wizard tries to find these paths automatically on your computer. If it is unable to do so, you may need to manually specify these paths in TestComplete. To check whether the paths are specified correctly: 1. Launch TestComplete 2. Select Tools Options from TestComplete s main menu. This will open the Options dialog. 3. On the left of the dialog, select the Engines Mobile Android category. 4. In the Path to Android SDK edit box, specify the folder where you installed the Android SDK on your computer. 5. In the Path to Java Runtime edit box, specify the folder where Java is installed on your computer. 6. Switch to the Engines Mobile General category. 7. Enable the Automatically display Mobile Screen on OnScreen operation option. 8. Enable the Automatically display Mobile Screen on recording option. 9. Click OK to close the dialog and save the settings. Preparing Mobile Device After all of the required software was installed on the desktop computer, you need to prepare the mobile device as well. Enabling Developer Options on the Device To perform testing on a physical Android device, you need to enable certain developer options on the device: 1. Make the developer options visible. Go to Settings About phone/tablet and touch Build number 7 times. Note: The way in which you make the developer options visible may vary between devices and Android versions. Please refer to the documentation on your device for more information. 2. Go to Settings Developer options and enable the following options: smartbear.com TestComplete by SmartBear Software
73 Testing Android Applications 73 USB debugging - Enables communication between the device and Android Debug Bridge (ADB). In other words, it makes your device visible to ADB and TestComplete. Stay awake - Prevents the device from going into sleep mode during debugging. 3. Save the changes. Connecting the Device Turn on your device and connect it to your computer with the USB cable. Android Debug Bridge will detect the connection and automatically connect to the device. Checking Whether Device Is Connected To verify whether the mobile device has connected successfully: Click the Show Mobile Screen button on the TestComplete toolbar. The Mobile Screen window will open if at least one mobile device or virtual machine is connected to Android Debug Bridge. If you have several devices or virtual machines connected, a click on the Show Mobile Screen item will open the Select Current Device dialog that lists the connected devices. Check whether your device or virtual machine is on the list, select it there and click OK to view its screen. Installing TestComplete Android Agent TestComplete Android Agent is a helper application used to exchange data with Android applications prepared for testing with TestComplete. The Agent should be installed on the mobile device. To install the Agent: Open the Mobile Screen window (if you have not opened it yet) Press the Install Android Agent button on the window toolbar. Preparing Application for Testing In order for TestComplete to recognize objects of an Android application, that is, to make it "open" to TestComplete, you need to prepare the application in a special way. To learn how to prepare applications manually or automatically, see Instrumenting Android Applications in TestComplete Help. The Orders application which will be used in this tutorial is already prepared for white-box testing. Therefore the preparation actions will not be needed this time. Now TestComplete, the mobile device and the application are prepared for testing. In the following sections, we will describe how to create a test project, create a simple test and play it back SmartBear Software
74 74 Testing Android Applications 2. Creating a Test Project Let s create a new test project: 1. If you have a project or project suite opened in TestComplete, close it. To do this, choose File Close from TestComplete s main menu. 2. Select File New New Project from TestComplete s main menu. This will call up the Create New Project wizard. 3. In the wizard, enter the project name and the location where you want to store the project. In this tutorial, we will name the project AndroidOrders and use the default location. 4. On the next page, select Android applications. 5. On the next page, we can add our tested Android application to the project. To do this: Click the Add. The Add Android Tested Application wizard will appear. In the wizard, click the button near the Android application package file edit box and browse for the Android Orders package file. Its path is as follows: smartbear.com TestComplete by SmartBear Software
75 Testing Android Applications 75 On Windows Vista, Windows 7 or later Windows versions: C:\Users\Public\Public Documents\TestComplete 11 Samples\Mobile\Android\Orders\Orders Application\bin\Orders.apk On Windows XP or Windows Server 2003: C:\Documents and Settings\All Users\Shared Documents\TestComplete 11 Samples\Mobile\Android\Orders\Orders Application\bin\Orders.apk Note: Some file managers can display the Shared Documents and Public Documents folders as the Documents folder. Select the Deploy to the device on start check box to install the application on the device every time you launch the application from TestComplete. Clear the Keep the data and cache directories on removal check box. This will guarantee the same initial state of the tested application. Click Next and then Finish to close the wizard. Make sure that the Autorun check box on the list is selected. If it is selected, TestComplete will automatically launch the Orders tested application on the mobile device when you start recording tests. If the check box is clear, then, to record user actions over your application, you will have to launch the application manually. Click Next to continue. 6. On the next page, you can enable or disable Test Visualizer for test recording and playback. To do this, check or uncheck the corresponding check box. Click Next. 7. On the last page, choose the preferable scripting language and click Finish. TestComplete will create a new project and show its files in the Project Explorer panel. 3. Creating a Test Creating Tests in TestComplete TestComplete allows you to create tests in two ways. You can: Create tests manually Record tests When you create a test manually, you enter all the needed commands and actions that your test must perform via appropriate script objects or keyword test commands. This approach is very helpful when you need to create very powerful and flexible tests or if you have good experience in creating tests. However, creating tests manually requires a lot of time and does not prevent you from different problems. For example, while creating a test manually you must know the classes and names of your application's objects you want to work with. To solve such problems, TestComplete includes a special feature that lets you easily create tests. You can perform some actions against the tested application once and TestComplete will automatically 2015 SmartBear Software
76 76 Testing Android Applications recognize these actions and then convert them to script lines or keyword test operations. We call this feature "recording a test", because you create a test visually and in one sense you record the performed actions to a script or keyword test. It is a very useful approach and it does not require much experience in creating tests. So, in this tutorial we will demonstrate how to record tests with TestComplete. Recording Tests in TestComplete The recording includes three steps: 1. You start recording by selecting Test Record Record Keyword Test or Test Record Record Script from TestComplete s main menu or from the Test Engine toolbar. You can also start recording by clicking Record a New Test on the Start Page. After you command TestComplete to start the recording, it will switch to the recording mode. In this mode, TestComplete minimizes its main window, displays the Recording toolbar and, optionally, displays the Mobile Screen window. The Recording toolbar contains items that let you perform additional actions during the recording, pause or stop recording and change the type of the recorded test (from the keyword test to script code, or vice versa). The Mobile Screen window displays the screen of the connected mobile device. This window is used to record tests against mobile applications. The window is displayed if the Automatically display Mobile Screen on recording option is enabled. 4. After starting the recording, perform the desired test actions: launch the tested application (if needed), work with the application as you normally do: select menus, touch buttons and other controls and so on. 5. After all the test actions are over, stop the recording by selecting Stop from the Recording toolbar. For complete information on test recording, see Recording in TestComplete in the Help. Planning a Test for the Android Orders Application The sample Android Orders application works with a list of orders. Suppose you need to test whether the application s Edit Order page functions properly and modifies data in the order list. In this case -- Test purpose: The test should check whether the Edit Order page saves the modified data and the changes are visible in the order list. Testing steps: Our test should simulate modifying order details and then verify data in the order list. For simplicity, our test will change only one property of one order. smartbear.com TestComplete by SmartBear Software
77 Testing Android Applications 77 Checking and logging the test result: If the change made to the order has been saved correctly, it should be visible in the order list. To check this, our test will compare the data in the list with the expected value. We will add a special comparison command to the test for this. This command will post comparison results to the test log, so we will see whether verification failed or passed successfully. For more information on planning tests with TestComplete, see Planning Tests in TestComplete Help. Recording a Test for the Android Orders Application Now let s record a keyword test for the sample Android Orders application. 1. Open the Mobile Screen window. TestComplete records only those actions over mobile applications that you perform in this window and ignores the actions that you perform on the device, emulator or virtual machine. Click the Show Mobile Screen button on the Test Engine toolbar. 2. Open the keyword test in the editor. When creating a new project, TestComplete automatically creates an empty keyword test in this project. We will add test commands into this test. To open the keyword test: Switch to the Project Explorer panel. Expand the KeywordTests node. Double-click the Test1 node. 3. To start the recording, select the Append to Test item on the test editor s toolbar. TestComplete will display the Recording toolbar on screen. If the Interactive Help panel is visible, TestComplete will also show information about the recording in it SmartBear Software
78 78 Testing Android Applications By default, the Recording toolbar is collapsed: Click the arrow button to expand the Recording toolbar and view all its buttons: 4. After you start the recording, TestComplete will automatically deploy the Orders application to the mobile device and start this application. This happens, because we have enabled the application s Deploy to the device on start and Autorun settings while creating the test project on the previous step. If we had disabled the Autorun property, we would have had to launch the application manually. You can do this by selecting the Run Tested Application command from the Recording toolbar: You can also launch the application from the Run Apps drop-down menu on the Mobile Screen window s toolbar. TestComplete records the application start using a special application launch test command. You will see this command later, when we will analyze the recorded test. smartbear.com TestComplete by SmartBear Software
79 Testing Android Applications Wait until the Android Orders application installs and starts on the mobile device. The Mobile Screen window will display the initial window of the application: If the Interactive Help panel is visible, resize or move it so that it does not overlap the Mobile Screen window. Your actions on this panel are not recorded. 6. In the Mobile Screen window, click Samuel Clemens s order SmartBear Software
80 80 Testing Android Applications 7. Click the Edit button of the Orders application. This will invoke the Edit Order screen: 8. Let s change the customer name in the order details. Clear the Samuel Clemens text and type Mark Twain instead. Use your desktop keyboard to enter text in the Mobile Screen window. 9. Scroll down the Edit Order Screen till the Ok button becomes visible and click this button. This will save the order changes and return back to the orders list. smartbear.com TestComplete by SmartBear Software
81 Testing Android Applications Now let s insert a comparison command into our test. It will verify that the application s customer list displays the modified name - Mark Twain. We call the comparison commands checkpoints. TestComplete offers various types of checkpoints that are suitable for verifying different types of data (see Checkpoints section in TestComplete Help). One of the most frequently used checkpoints is the Property checkpoint. It is used to check data of application controls. We will use this checkpoint in our tutorial. Select Create Property Checkpoint from the Checkpoint drop-down list of the Recording toolbar: 2015 SmartBear Software
82 82 Testing Android Applications This will invoke the Property Checkpoint wizard. It will guide you through the process of checkpoint creation: On the first page of the wizard, click the target glyph ( ) with the left mouse button and keep the button pressed. Wait until the wizard minimizes and then drag the icon to the orders list of the Orders application. While you are dragging, TestComplete will highlight the controls and windows under the mouse cursor with the red frame. Release the mouse button when the target glyph is over the order made by Mark Twain and when the entire item is highlighted with the red frame: smartbear.com TestComplete by SmartBear Software
83 Testing Android Applications 83 After you release the mouse button, TestComplete will restore the wizard and display the name of the selected object in the Object box and the image of the object below it: 2015 SmartBear Software
84 84 Testing Android Applications Click Next to continue. The next page of the wizard displays a list of the selected object s properties and fields. This list includes properties provided by TestComplete, as well as properties and fields defined by the tested application. To verify the data, we will use several native fields defined by the application. To view the object s fields, click the View more members (Advanced View) link and then switch to the Fields tab. Type mtext1 in the Search box. TestComplete will filter out the members according to the text you type. Select the mtext1 field. This field refers to an object. To view the members of this object, press the ellipsis button. smartbear.com TestComplete by SmartBear Software
85 Testing Android Applications 85 Switch to the Fields tab and type mtext in the Search box. Find the mtext property in the list. Select this property and then click Next to continue SmartBear Software
86 86 Testing Android Applications On the next page of the wizard you can see the name of the property whose value will be verified, the comparison condition and baseline data in the Value box: Click Finish to complete the checkpoint creation. 11. Press Stop on the Recording toolbar to stop the recording. TestComplete will process the recorded test commands and save them to a test. smartbear.com TestComplete by SmartBear Software
87 Testing Android Applications Analyzing the Recorded Test After you have finished recording, TestComplete opens the recorded keyword test for editing and displays the test s contents in the Keyword Test editor: The recorded test is similar to the test shown in the image above. Your actual test may differ from this one. For example, it may contain some unnecessary touch actions. The test contains the commands that correspond to the actions you performed on the Orders application during the recording. We call the test commands operations. Below the commands there is the Test Visualizer panel that displays images which TestComplete captured for operations during test recording: 2015 SmartBear Software
88 88 Testing Android Applications These images illustrate the recorded operations and help you better understand which action the operation performs. TestComplete captures images only for those operations that correspond to user actions (touching, dragging, typing text and so on). When you choose an operation in the editor, Test Visualizer automatically highlights the appropriate image so you can easily explore the application state before the operation is executed. For more information on working with images, see the topics in the Test Visualizer section in TestComplete Help. The first operation in the test is Select Device. It specifies a mobile device the test should work with. All further test operations will refer to this device. The second operation is Run TestedApp. It is used to launch the tested application (in our case, it is the Orders application) from a keyword test. TestComplete automatically records this operation when it launches the application automatically or detects an application launch from the Recording toolbar. After that, there are operations that simulate your actions with the application. These operations select an item in the orders list, press the Edit button, change the value of the text field and press the Ok button. smartbear.com TestComplete by SmartBear Software
89 Testing Android Applications 89 For more information on simulating touch events, text input and other user actions from your tests, see Simulating User Actions Over Android Devices in TestComplete Help. Finally there is the comparison operation that we added during the test recording: As you can see, TestComplete automatically organizes the operations into groups that correspond to mobile devices and processes you worked with. Grouping makes the test structure easier to understand and also provides some information on the object hierarchy that exists in the application under test. We recorded user actions on one mobile device and one process. So, we have two group nodes. The device node groups processes that were launched on the same device. The process node contains all of the actions that you simulated on the process windows and controls SmartBear Software
90 90 Testing Android Applications You may notice that the names of the tested process and its windows and controls differ from the names that you can see in the Object Browser panel. For instance, in the Object Browser, the tested process was named Process("smartbear.example.orders") while in the test it is called Process_example_orders; the Edit button was called Button("editButton") while in the test it is called Button_Edit, and so on. There is a logical reason for this: by default, TestComplete automatically generates and uses custom names for the objects you worked with during the test recording. Generating and assigning custom names is called name mapping. TestComplete maps the names because the default names may be difficult to understand. It may be difficult to determine which window or control corresponds to a name. Using mapped names makes the test easier to understand and more stable. For more information on mapping names, see Name Mapping in TestComplete Help. 5. Running the Test Now we can run our simple test to see how TestComplete simulates user actions. Before running a test, make sure it starts with the same initial conditions that existed when the test was created. For instance, the test designed for mobile applications must select which of the mobile devices it will currently work with. For this purpose we placed the Select Device keyword operation in the beginning of the test. Besides that, the test almost always requires that the tested mobile application be deployed onto the device and launched on it. In our case, to launch and deploy our tested application, we used the Run TestedApp keyword operation and enabled the Deploy to the device on start parameter of the tested application. smartbear.com TestComplete by SmartBear Software
91 Testing Android Applications 91 To run the recorded test, simply click Run Test on the test editor s toolbar: TestComplete will start executing test commands. In our case, the test will open the order and change the customer name from Samuel Clemens to Mark Twain and then verify whether the name has changed. Note: Don t move the mouse or press any keys during the test execution. Your actions may interfere with the actions simulated by TestComplete and the test execution may go wrong. After the test execution is over, TestComplete will restore its windows and display test results. In the next step we will analyze them. Some notes about the test run: During the test execution, TestComplete displays an indicator in the top right corner of the screen: The indicator displays messages informing you about simulated test actions. TestComplete executes test commands until the test ends. You can stop the execution at any time by pressing Stop on the Test Engine toolbar or in the indicator, or by selecting Test Stop from TestComplete s main menu. You can pause the test execution by clicking Pause. During the pause, you can perform any actions needed. For instance, you can explore the test log or check test variables and objects using TestComplete s Watch List or Locals panel or the Evaluate dialog (see Debugging Tests in TestComplete Help). For complete information on running tests in TestComplete, on project settings that affect the runs and on the test execution, see Running Tests section in TestComplete Help SmartBear Software
92 92 Testing Android Applications 6. Analyzing Test Results TestComplete keeps a complete log of all operations performed during testing. The links to test results are shown in the Project Explorer panel under the Project Suite Logs AndroidOrders Log node. This is the primary workspace for looking up the test history of the project and project suite. Each node corresponds to a test run. An image to the left of the node specifies whether the corresponding test run passed successfully: Note that TestComplete automatically adds nodes for the last results after the test execution is over. That is, the results are not displayed when the test is running (you can view intermediate results if you pause the test execution). Since we have run only one test so far, we have only one log node in the Project Explorer. By default, TestComplete automatically opens the contents of this node in the Workspace panel. You can also view the log at any time. To do this, right-click the desired result in the Project Explorer panel and choose Open from the context menu. smartbear.com TestComplete by SmartBear Software
93 Testing Android Applications 93 In our example, the log is as follows The log window shows the results of one test run at a time. On the left side of the window, there is a tree-like structure of the tests that were executed during the run; the node of each of these tests can be selected to view their results. For our example, we have run only one test, so in our case this tree only contains one node. The node s icon indicates whether the test passed successfully or failed. The test log contains error, warning, informative and other types of messages. The icon on the left indicates the message type. Using the check boxes at the top of the message list you can hide or view messages by type. For each message, the log also shows the time that each action was performed. You can see it in the Time column. TestComplete may post additional text and images along with the message. To view them, simply select the desired message in the log and look in the Additional Info and Picture panes that are below the message list. The Picture panel displays the images that show the expected and actual application state before executing the selected test command. Expected is the image that was captured for the command during test recording, actual means the image that was captured during test run.) The test log includes a special button that lets you 2015 SmartBear Software
94 94 Testing Android Applications compare the images and easily see the difference. This simplifies the search for errors that may occur in your test. For more information, see topics of the Test Visualizer section. The log s Call Stack pane displays the hierarchy of test calls that led to posting the selected message to the log. The log s Performance Counters pane displays values of the performance counters monitored during the test run. The values are shown in the form of graphs. To view a test operation that posted a message to the log, double-click the desired message in the log. TestComplete will open the keyword test in the editor and highlight the appropriate operation. For instance, if you double-click the The button was touched message in the log, TestComplete will highlight the keyword test operation that performed this action: For detailed information on the test log panels, on posting messages to the log and on working with the results, see the About Test Log section in TestComplete Help. Note: The log that we described is typical for TestComplete keyword tests and scripts. Tests of other types may form a log of a different structure. For detailed information about these logs, see the description of the appropriate project item, or simply click within the log page and press F1. Resolving Errors Your test may fail. There can be several possible reasons for this. For instance, developers could change the application s behavior, the recognition attributes of windows and control change and make the test engine fail smartbear.com TestComplete by SmartBear Software
95 Testing Android Applications 95 to find the needed objects, a third-party application may overlap windows of your application and make the test engine fail to simulate actions on them, and so on. One of the most typical reasons faced by novice users is the difference in the application s state during the test creation and playback. To avoid this problem, make sure that the initial conditions of the test run correspond to those you had when creating the test. For instance, if the tested application had been running before you recorded the test, it must also be running before you run the test; if the test actions were performed on a particular screen of the application, you should also open that screen when you run the test, and so on. If your test ran with errors, examine and fix them to make the test pass. For information on searching for the cause of errors and resolving typical problems, see Handling Playback Errors section in TestComplete Help. 7. Running Test on Multiple Devices After you have checked that the test is executed successfully on one of the mobile devices, you can modify it to be executed on multiple mobile devices. In this way you can ensure that the mobile application works correctly on different types of mobile devices (smartphones, tablets and so on). Let s modify the test so it can run on different mobile devices, one after another. Open the test in the Keyword Test Editor. Drag the Device Loop operation from the Mobile category of the Operations panel to the Test Area. Drop the operation at the very beginning of the test (above all other operations). This will add the operation to the test SmartBear Software
96 96 Testing Android Applications In the ensuing operation parameters dialog, select Iterate Through All Connected Devices and press Finish. Delete or disable the Select Device operation from the test. It is no longer needed because the Device Loop operation iterates through the mobile devices. Select all test operations that go after the Device Loop operation and click to move them inside the loop. Now these operations will be executed on each loop iteration. Here is what the resulting test should look like: Save the test by selecting File Save from TestComplete s main menu. Prepare and connect another mobile device as described in the Preparing Mobile Device section of Preliminary Steps. Now run the resulting test. smartbear.com TestComplete by SmartBear Software
97 Testing Android Applications 97 TestComplete will repeat the test operations several times. Each time the test actions will be performed on a different mobile device. The test log contains information about which mobile device was used and results of the test operations performed on each device SmartBear Software
98 98 Testing ios Applications Testing ios Applications This tutorial explains how to test ios applications with TestComplete. We are going to prepare a testing environment for mobile testing, connect to a mobile device and deploy the tested application to it, create and run a simple test and analyze the results. The test will emulate user actions over the mobile application and verify some data. Requirements To complete this tutorial, you need the following: A Windows computer with TestComplete Mobile module and Apple itunes. itunes is needed, because it contains the USB driver that TestComplete uses to connect to ios devices. An iphone, ipad or ipod touch running ios 7.x, and A Mac computer with Xcode, ios SDK and an ios development license - to compile the sample Orders application. About Tested Application In our explanations we will use the ios version of the Orders application that is shipped along with TestComplete. The application lets you manage a table of purchase orders: you can view the list of existing orders, modify or remove them, as well as add new orders to the list. smartbear.com TestComplete by SmartBear Software
99 Testing ios Applications 99 The application should be compiled on your Mac and then deployed to the mobile device as described in this tutorial. 1. Preparing ios Device Before you can test ios applications with TestComplete, you need to: Add your ios device to the application provisioning profile (for the ios Developer Program only). Connect the device to the TestComplete computer via a USB cable. Adding Test Devices to the Application's Provisioning Profile If you have the ios Developer Program, you need to add the test device to the provisioning profile of the tested ios application to install the application on this device. You can register test devices on Apple s Member Center web site: Get the device identifier (UDID). For this purpose, launch itunes, select your ios device and on the Summary tab, click Serial Number. The serial number will be replaced with the UDID. Open the Devices section of the Member Center: Click the button in the upper-right corner. Select the Register Device radio button. Enter the device name and UDID SmartBear Software
100 100 Testing ios Applications Click Continue and then Register. You have registered your device for testing. Now you need to add it to the application s provisioning profile. Select Provisioning Profiles from the menu on the left. Select the profile to which you want to add the device and click Edit. In the Devices list, select all the devices where you want to test the application. Click Generate to save the changes. smartbear.com TestComplete by SmartBear Software
101 Testing ios Applications 101 Connecting Device to TestComplete Connect your ios device to the TestComplete computer via a USB cable. If the device shows a dialog asking whether you trust this computer, tap Trust. Also, we recommend that you change the following settings of the device: Go to Settings General. Tap Auto-Lock. Select Never. Go to Settings Wallpapers&Brightness. Move the brightness slider to the minimum value. This will prevent the device from locking the screen during the test run and reduce battery consumption of the connected device. To make sure TestComplete sees the connected device, switch to the Object Browser. You should see the Device("your_device_name") object under the Mobile object. On the next step, we will prepare the sample Orders application for testing. 2. Preparing ios Application for Testing To test your ios application with TestComplete, you need to prepare it using the TestComplete library. You can instrument ios applications in TestComplete, but you will need user certificate files from your Mac in this case. These files verify that the application was created by a specific developer and can be run on specific devices. You need to do this only once. You will then be able to use these certificate files to instrument all your ios applications. You can instrument your application directly in Xcode. To do this, you add the TestComplete static library to your project, build the application and then resign it using the script provided with TestComplete 1. Get the Apple WWDR Certification Authority File The Apple Worldwide Developer Relations (WWDR) certificate links your development certificate to Apple. You can download it from here: 2015 SmartBear Software
102 102 Testing ios Applications 2. Get Developer Certificate and PEM Files A developer certificate verifies that the application was created by a specific developer. The PEM file contains the keys used to sign the application created by this developer. To get developer certificate and PEM files, you need a Mac with the needed certificate installed. The PEM file must contain keys for the developer certificate you will export. 1. On your Mac, open the KeyChain Access application and switch to the Certificates category. 2. Right-click the needed developer profile and choose Export. 3. Make sure that you are exporting the certificate in the.cer format and click Save. You have created a developer certificate file. 4. To create a PEM file, switch to the Keys category. 5. Right-click the key associated with the developer and choose Export. Tip: To make sure you are downloading the correct key, click the drop-down arrow. The expanded item should mention the same developer certificate that you have exported. See the image above. smartbear.com TestComplete by SmartBear Software
103 Testing ios Applications Choose the Personal Information Exchange (.p12) format and click Save. 7. Enter the password that is used to protect the items you are exporting and click OK. You will need this password later to convert the file to the PEM format. TestComplete does not need this password. 8. Enter your Keychain Access password and click Allow. 9. After you export the file, you need to convert it to the PEM format using the command line: Open the command line window and navigate to the folder to which you exported the file. Run the following command line: openssl pkcs12 -in CertificatesPem.p12 -out Certificates.pem -nodes You will need to enter the password for the.p12 file that you specified earlier. 3. Get a Provisioning Profile A provisioning profile is a collection of certificates that combine developers and devices into one development team and allow using these devices for testing SmartBear Software
104 104 Testing ios Applications To perform testing with TestComplete, we recommend that you use the ios App Development profile. In this case, you will be able to automate the deployment of your tested applications to your ios devices and launching the applications on them with specific TestComplete scripting methods or keyword-test operations. The provisioning profile must belong to the same developer as the certificate and PEM files. 1. Open the following web page in your browser and log in to the Member Center: 2. In the Developer Program Resources section of the next page, click the Manage your certificates... link: 3. Click Provisioning Profiles in the ios Apps section. 4. On the subsequent page, select Provisioning Profiles Development. You will see a list of provisioning profiles of the development type: smartbear.com TestComplete by SmartBear Software
105 Testing ios Applications Click the needed profile and click Download in the expandable section. 3. Creating a Test Project Let s create a new test project in TestComplete: 1. If you have an open project or project suite, close it by selecting File Close from TestComplete s main menu. 2. Select File New New Project from TestComplete s main menu. The Create New Project wizard will appear. 3. In the wizard, enter the project name and the location where you want to store the project. In this tutorial, we will name the project iosorders and use the default location. 4. On the next page, select ios applications. We can now add the tested ios application to the project. To do this: 1. Click Add. The Add ios Application wizard will appear. 2. On the first page of the wizard, specify the path to the Orders.ipa file (copy this file from the Mac computer to the computer where TestComplete is installed, if you have not done this yet) SmartBear Software
106 106 Testing ios Applications 3. Make sure the Deploy to the device on start option is selected and click Next. 4. On the next step, TestComplete will check whether your application is instrumented or not. If it is not instrumented, the wizard will ask whether you want to instrument the application. Choose to instrument. 5. On the next step, the wizard will suggest backing up the original version of the application s.ipa file. The backup copy is useful if you need the uninstrumented version of your application. If you do not need it, clear the Backup the original.ipa file checkbox. Click Next to continue. 6. On the last page of the wizard, you specify the path to the files holding certificate data for signing your application. smartbear.com TestComplete by SmartBear Software
107 Testing ios Applications Click Finish. TestComplete will recompile your ios application, and add it to the Tested Applications list of your project. 8. Make sure that the Autorun check box is selected. If it is selected, TestComplete automatically launches the Orders tested application on the mobile device when you start test recording. If the check box is clear, then, to record user actions over the application, you will have to launch the application manually. 5. On the next page, you can enable or disable Test Visualizer functionality. To do this, check or uncheck the corresponding check box. Click Next. 6. On the last page, choose the preferable scripting language and click Finish TestComplete will create the project and show its files in the Project Explorer. Now you can install and launch the Orders application on the connected ios device directly from TestComplete. To do this, right-click the application in the Process Explorer and select Run from the context menu. 4. Creating a Test Now let's record our first test SmartBear Software
108 108 Testing ios Applications Creating Tests in TestComplete TestComplete allows you to create tests in two ways. You can: Create tests manually Record tests When you create a test manually, you enter all the needed commands and actions that your test must perform via appropriate script objects or keyword test commands. This approach is very helpful when you need to create very powerful and flexible tests or if you have good experience in creating tests. However, creating tests manually requires a lot of time and does not prevent you from different problems. For example, while creating a test manually you must know the classes and names of your application's objects you want to work with. To solve such problems, TestComplete includes a special feature that lets you easily create tests. You can perform some actions against the tested application once and TestComplete will automatically recognize these actions and then convert them to script lines or keyword test operations. We call this feature "recording a test", because you create a test visually and in one sense you record the performed actions to a script or keyword test. It is a very useful approach and it does not require much experience in creating tests. So, in this tutorial we will demonstrate how to record tests with TestComplete. Recording Tests in TestComplete The recording includes three steps: 1. You start recording by selecting Test Record Record Keyword Test or Test Record Record Script from TestComplete s main menu or from the Test Engine toolbar. You can also start recording by clicking Record a New Test on the Start Page. After you command TestComplete to start the recording, it will switch to the recording mode. In this mode, TestComplete minimizes its main window, displays the Recording toolbar and, optionally, displays the Mobile Screen window. The Recording toolbar contains items that let you perform additional actions during the recording, pause or stop recording and change the type of the recorded test (from the keyword test to script code, or vice versa). The Mobile Screen window displays the screen of the connected mobile device. This window is used to record tests against mobile applications. The window is displayed if the Automatically display Mobile Screen on recording option is enabled. 2. After starting the recording, perform the desired test actions: launch the tested application (if needed), work with the application as you normally do: select menus, touch buttons and other controls and so on. 3. After all the test actions are over, stop the recording by selecting Stop from the Recording toolbar. For complete information on test recording, see Recording in TestComplete in TestComplete Help. smartbear.com TestComplete by SmartBear Software
109 Testing ios Applications 109 Planning a Test for the ios Orders Application The sample ios Orders application works with a list of orders. Suppose you need to test whether the application s Edit Order page functions properly and modifies data in the order list. In this case -- Test purpose: The test should check whether the Edit Order page saves the modified data and the changes are visible in the order list. Testing steps: Our test should simulate modifying order details and then verify data in the order list. For simplicity, our test will change only one property of one order. Checking and logging the test result: If the change made to the order has been saved correctly, it should be visible in the order list. To check this, our test will compare the data in the list with the expected value. We will add a special comparison command to the test for this. This command will post comparison results to the test log, so we will see whether verification failed or passed successfully. For more information on planning tests with TestComplete, see Planning Tests in TestComplete Help. Recording a Test for the ios Orders Application Do not switch to TestComplete Help during test recording. The recording engine traces and records all user actions, so the recorded test will contain the commands that simulate this action. To have the help instructions at hand, you can print them before starting recording. Or, if you have two monitors, you can move the window of TestComplete's help system to the other monitor. Now let s record a keyword test for the sample ios Orders application. 1. Before recording a test, open the Mobile Screen window. TestComplete records only those actions over mobile applications that you perform in this window. Click the Show Mobile Screen button on the Test Engine toolbar. 2. Open the keyword test in the editor. When creating a new project, TestComplete automatically creates an empty keyword test in this project. You will add test commands to this test SmartBear Software
110 110 Testing ios Applications To open the keyword test: Switch to the Project Explorer panel. Expand the KeywordTests node. Double-click the Test1 node. 3. To start recording, select the Append to Test item on the test editor s toolbar. TestComplete will display the Recording toolbar on screen. If the Interactive Help panel is visible, TestComplete will also show information about the recording process in it. By default, the Recording toolbar is collapsed: Click the arrow button to expand the Recording toolbar and view all its buttons: 4. After you start recording, TestComplete will automatically deploy the Orders application to the mobile device and start this application. This will happen because you enabled the application s Deploy to the device on start and Autorun options while creating the test project on the previous step. If the Autorun option is disabled, you will have to launch the application manually. To do this, select the Run Tested Application command from the Recording toolbar: smartbear.com TestComplete by SmartBear Software
111 Testing ios Applications 111 You can also launch the application from the Run Apps drop-down menu on the Mobile Screen window s toolbar. TestComplete records the application start using a special application launch test command. You will see this command later when analyzing the recorded test. 5. Wait until the ios Orders application installs and starts on the mobile device. The Mobile Screen window will display the initial window of the application: If the Interactive Help panel is visible, resize or move it so that it does not overlap the Mobile Screen window. Your actions on this panel are not recorded. 6. In the Mobile Screen window, press the Edit button. This will switch the Orders application to the edit mode SmartBear Software
112 112 Testing ios Applications 7. Click the second order in the list made by Samuel Clemens. This will display the Edit Order panel: 8. Let s change the customer name in the order details. smartbear.com TestComplete by SmartBear Software
113 Testing ios Applications 113 In the CUSTOMER INFO section, clear the Samuel Clemens text, type Mark Twain and press Enter. Use your desktop keyboard to input text in the Mobile Screen window. 9. OK, now press the Save button in the Edit Order panel. This will invoke the confirmation dialog: 10. To confirm the changes, press the Yes button. 11. Now, if you are recording the test on an iphone or ipod touch device (whose display shows only one panel at a time), you need to touch the Orders button in the navigation bar. This will take you back to the Orders List panel. ipad devices display both panels simultaneously, so, there is no need to perform such an action. 12. Press the Done button to switch off the edit mode. The orders list will return to normal mode: 2015 SmartBear Software
114 114 Testing ios Applications 13. Now let s insert a comparison command into our test. It will verify that the application s customer list displays the modified name - Mark Twain. We call comparison commands checkpoints. TestComplete offers various types of checkpoints that can be used to verify different types of data (see Checkpoints in TestComplete Help). One of the most frequently used checkpoints is the Property checkpoint. It is used to check data of application controls. We will use this checkpoint in our tutorial. Select Create Property Checkpoint from the Checkpoint drop-down list of the Recording toolbar: smartbear.com TestComplete by SmartBear Software
115 Testing ios Applications 115 This will invoke the Property Checkpoint wizard. It will guide you through the process of checkpoint creation. On the first page of the wizard, click the target glyph ( ) with the left mouse button and keep the button pressed. Wait until the wizard minimizes and then drag the icon to the orders list of the Orders application. While you are dragging, TestComplete will highlight the controls and windows under the mouse cursor with a red frame. Release the mouse button when the target glyph is over the orders list and when the entire list is highlighted with the red frame: 2015 SmartBear Software
116 116 Testing ios Applications After you release the mouse button, TestComplete will restore the wizard and display the name of the selected object in the Object box and the image of the object below it: smartbear.com TestComplete by SmartBear Software
117 Testing ios Applications 117 Click Next to continue. The next page of the wizard displays a list of the selected object s properties. This list includes the properties provided by TestComplete and the properties defined by the tested application. To view all the available properties, click the View more members (Advanced View) link. TestComplete appends three groups of properties to the selected object: one group includes properties common for all tested windows and controls. You can see them under the Standard node. Another group includes properties that are specific to mobile controls. You can see these properties under the Extended node. Finally, all native properties of the corresponding control are displayed under the ios node. To verify the data, we will use the witem property of the parent TableView object. It provides access to the text shown in the specified item of the selected table view. Find the Parent property in the list (it is under the Standard node). Click the ellipsis button next to it. It makes the parent object selected, so the dialog shows its properties. In the list of the TableView object s properties, find the witem property (it is under the Extended node). Click the Params button and enter 1 in the Index field. Click OK and then Next to continue. On the next page of the wizard, you can see the name of the property whose value will be verified, the comparison condition and the baseline data, which is in the Value box: 2015 SmartBear Software
118 118 Testing ios Applications Click Finish to complete the checkpoint creation. TestComplete will append the checkpoint command to the recorded test. 14. Press Stop on the Recording toolbar to stop recording. TestComplete will process the recorded test commands and save them to the keyword test. 5. Analyzing the Recorded Test After you finish recording, TestComplete opens the recorded keyword test for editing and displays the test s contents in the Keyword Test editor: smartbear.com TestComplete by SmartBear Software
119 Testing ios Applications 119 The recorded test is similar to the test shown in the image above. Your actual test may differ from this one. For example, it may contain some unnecessary touch actions. The test contains the commands that correspond to the actions you performed on the Orders application during test recording. We call these test commands operations. Below the commands there is the Test Visualizer panel that displays images which TestComplete captured for operations during test recording: These images illustrate the recorded operations and help you better understand which action the operation performs. TestComplete captures images only for those operations that correspond to user actions (touching, dragging, typing text and so on). When you choose an operation in the editor, Test Visualizer automatically highlights the appropriate image so you can easily explore the application state before the operation is executed. For more information on working with images, see the topics in the Test Visualizer section in TestComplete documentation SmartBear Software
120 120 Testing ios Applications The first operation in the test is Select Device. It specifies the mobile device the test should work with. The other test operations refer to this device. The second operation is Run TestedApp. It is used to launch the tested application (in our case, it is the Orders application) from a keyword test. TestComplete automatically records this operation when it launches the application automatically or when it detects that the application has been launched from the Recording toolbar. Then there are the operations that simulate your actions with the application. These operations press the Edit button, select an item in the orders list, change the value of the text field, save the changes and press the Done button. smartbear.com TestComplete by SmartBear Software
121 Testing ios Applications 121 For more information on simulating touch events, text input and other user actions from your tests, see Simulating User Actions on ios Applications and Working With ios Controls in TestComplete Help. Finally, there is the comparison operation that you added during test recording: As you can see, TestComplete automatically organizes the operations into groups that correspond to the mobile devices and processes you worked with. Grouping makes the test structure easier to understand and also provides some information on the object hierarchy that exists in the application under test. We've recorded user actions on one mobile device and one process. So, we have two group nodes. The device node groups processes that were launched on the same device. The process node contains all of the actions that you simulated on the process windows and controls SmartBear Software
122 122 Testing ios Applications You may notice that the names of the tested process and its windows and controls differ from the names that you can see in the Object Browser panel. For instance, in the Object Browser, the tested process was named Process("Orders") while in the test it is called ProcessOrders; the navigation bar was called NavigationBar(1) while in the test it is called navigationbar1, and so on. There is a logical reason for this: by default, TestComplete automatically generates and uses custom names for the objects you worked with during test recording. Generating and assigning custom names is called name mapping. TestComplete maps the names because the default names may be difficult to understand. It may be difficult to determine which window or control corresponds to a name. Using mapped names makes the test easier to understand and more stable. For more information on mapping names, see Name Mapping section in TestComplete Help. 6. Running the Test Now let s run our test to see how it works. Run the Test To run the test, click Run Test on the test editor s toolbar: smartbear.com TestComplete by SmartBear Software
123 Testing ios Applications 123 TestComplete will launch the Orders application on the device and perform the test actions on it: open Samuel Clemens s order and change the customer name to Mark Twain. Test Results After the test finishes, TestComplete shows the test log. You can look at it to see if the test has passed. We will tell you more about the test results in the next step of this tutorial. Notes on Running Tests Important: Do not touch the device's screen during the test run to avoid interference with the test actions. During the test execution, TestComplete displays an indicator in the top right corner of the screen: The indicator displays messages informing you about simulated test actions. You can stop the execution at any time by pressing Stop on the Test Engine toolbar or in the indicator, or by selecting Test Stop from TestComplete s main menu. You can pause the test execution by clicking Pause. During the pause, you can perform any actions needed. For instance, you can explore the test log or check test variables and objects using TestComplete s Watch List or Locals panel or the Evaluate dialog (see Debugging Tests in TestComplete Help) SmartBear Software
124 124 Testing ios Applications For complete information on running tests in TestComplete, on project settings that affect the runs and on the test execution, see Running Tests section in TestComplete Help. 7. Analyzing Test Results After the test finishes, TestComplete shows the test log with the results of all test operations. The results of our test looks as follows: The log contains messages of different types: actions, events, checkpoints and so on. You can filter the messages using the toolbar above the message list. If you double-click a log message, TestComplete will navigate to the test operation that posted this message. This is useful when you need to know which operation caused an error. The Picture panel contains images that show the expected and the actual application states before the selected test command is executed ( Expected is the image that was captured for the command during test recording, and Actual is the image that was captured during the test run.) The Actual Image toolbar has a special button that lets you highlight the difference between the images (if any). The images help you understand what happened in the application during the run, view the differences and find errors faster. For more information on capturing images, see the topics of the Test Visualizer section in TestComplete help. There are two more panes at the bottom of the log: Call Stack is useful when debugging tests that call each other. It shows the sequence of test calls that led to the current operation or error. smartbear.com TestComplete by SmartBear Software
125 Testing ios Applications 125 Performance Counters shows local or remote computer metrics (CPU load, memory usage and so on) measured during the test run. We do not use performance counters in our tutorial, but if you have a client-server ios application, you can set up performance counters to track your server metrics. All logs are kept under Project Suite Logs ProjectName Logs in the Project Explorer, so that you can review the previous logs. Sometimes, tests fail. This can happen if the object properties in the application were changed and no longer match the identification properties specified in Name Mapping. You need to troubleshoot the failed tests to find and fix the cause of the errors. For more information about finding and fixing errors, see Handling Playback Errors and Debugging Tests sections in TestComplete Help. 8. Adjusting the Test for Running on Multiple Devices After you check that the test is executed successfully on a mobile device, you can modify it so that it can run on multiple mobile devices. A test that will be executed on multiple ios devices should be able to handle the following: Different application layouts on tablets and smartphones. An application s user interface may vary depending on whether it runs on devices with a small screen (iphones or ipods) or on devices that have a larger screen (ipads). On small screens, the application may divide its UI elements into several layouts (panels, pages, views, tabs and so on). So, you may need to perform different actions to access the same control on a tablet and on a smartphone. As a result, a test created on an ipad will work on other ipads, but may fail on iphones or ipod touch devices, and vice versa - a test created on an iphone will work on other iphones and ipod touch devices, but may fail on ipad devices. There are several ways to handle this situation. The easiest way is to create two variants of your test - one for tablets, and one for smartphones. A more complex solution is to adapt the test for both types of 2015 SmartBear Software
126 126 Testing ios Applications devices. This may require creation of conditional test structures and probably adjusting the criteria of object recognition. Different object hierarchy on different versions of ios. Different versions of ios may have a different object hierarchy. So, a test may not find the needed object on another version of ios. To resolve this issue, you may need to correct the identification properties of such mismatching objects in the Name Mapping project item (the object repository). The Orders application, which we use in this tutorial, also changes its layout depending on whether it is running on a tablet or on a smartphone. To make the tutorial simple, we will not adapt the test for both types of devices, so please use devices of the same type (either iphones or ipads) when running your test. Also, the Orders application has a bit different object hierarchy when running on ios 9 and on earlier ios versions (ios 7-8). The test you have created addresses the textfield0 object whose full name is different on ios 9 and on earlier versions. This object corresponds to the Customer name editor of the Edit Order panel. The full mapped name of this object is different on ios 9 and on ios 7-8: NameMapping.Mobile.Device.processOrders.window0.tableview0. scrollview0.tableviewcell3_0.textfield0 (on ios 9) NameMapping.Mobile.Device.processOrders.window0.tableview0.tablevie wcell6.scrollview0.textfield0 (on ios 7-8). As you can see, there is no TableViewCell3_0 object after the scrollview0 object, but there is the tableviewcell6 object before it. To make the test consistent, you can apply the extended search criteria to the textfield0 object. When you move an object upper in the hierarchy, you may need to clarify finding criteria to avoid wrong recognition. In our case, we must add the text property in order to distinguish the desired object from the rest TextField objects. First, you need to ensure that this object can be found by TestComplete. Switch to the Mobile Screen window and do the following: Press the Edit button in the Orders application. Select the Mark Twain order in the list. This will display the Edit Order panel that contains the Customer name editor. Rename Mark Twain back to Samuel Clemens. Do not close the Edit mode. Double-click the NameMapping item in the Project Explorer to open the Name Mapping editor. Here you can view and edit the identification properties of mapped objects. Open the Mapped Objects pane. Expand the object tree and locate the textfield0 object. Double-click the textfield0 object. In the dialog that appears, select the text property in the list on the right and click. The Selected properties on the left should look like this: smartbear.com TestComplete by SmartBear Software
127 Testing ios Applications 127 Click OK to close the Edit Name Mapping Item dialog. In the Mapped Objects pane, drag the textfield0 object to make it an immediate child of the tableviewcell6 object. Enable the Extended Find check box for the textfield0 object. If a confirmation dialog appears, click Yes. In the Aliases tree, drag the textfield0 object s alias to the tableviewcell6 alias (like you did in the Mapped Objects tree). Delete the unneeded scrollview0 object from the Mapped Objects and Aliases trees. To delete an object, right-click it and select Delete from the context menu. Now, you need to update the object name in the keyword test. Open Test1 in the Keyword editor. Double-click the operation used to modify the customer name. Change the object name from Aliases.Device.processOrders.window0.tableview0.scrollview0.Ta bleviewcell3_0.textfield0 (on ios 9) or Aliases.Device.processOrders.window0.tableview0.tableviewcell6.scrol lview0.textfield0 (on ios 7-8) 2015 SmartBear Software
128 128 Testing ios Applications to Aliases.Device.processOrders.window0.tableview0.tableviewcell6.textfield0 Press Finish. In the Mobile Screen window, revert the Orders application to its initial state. Discard the changes made to the order (if any), close the Edit Order panel and press Done. Now you can run the test on multiple devices. 9. Running Test on Multiple Devices Let s modify the test so it can run on different mobile devices, one after another. Add the Device Loop operation from the Mobile category. Place it in the very beginning of the test. In the ensuing operation parameters dialog, select Iterate Through All Connected Devices and press Finish. Delete or disable the Select Device operation from the test. It is no longer needed because the Device Loop operation iterates through the mobile devices. Select all test operations that go after the Device Loop operation and click to move them inside the loop. Now these operations will be executed on each loop iteration. smartbear.com TestComplete by SmartBear Software
129 Testing ios Applications 129 Here is what the resulting test should look like: Save the test by selecting File Save from TestComplete s main menu. Prepare and connect another mobile device as described in the Preparing ios Device step. The type of the devices you use must be the same as the type of the devices you used when creating the test: either iphones or ipads. Now run the resulting test. TestComplete will repeat the test operations several times. Each time the test actions will be performed on a different mobile device. The test log contains information about which mobile device was used and results of the test operations performed on each device SmartBear Software
130 130 Testing ios Applications smartbear.com TestComplete by SmartBear Software
131 Where to Go Next 131 Where to Go Next This concludes the Getting Started tutorial. We hope it helped you to get acquainted with TestComplete. Now you can learn how to create tests for other types of applications, or you can learn about more advanced features and even start creating your own tests. To get more information about TestComplete and its features, please refer to TestComplete Help. Below are some help topics that may interest you: Common Recording in TestComplete This section contains information on recording tests in TestComplete. Checkpoints This section describes various checkpoint types offered by the test engine and explains how to create checkpoints during test recording or test design. Running Tests This section contains information on how to run tests, how to organize batch runs (run a group of tests), how to schedule test runs and so on. Test Log Explains how TestComplete logs test results and describes the test log panels. This section also describes how to post messages, images and files to the log. Handling Playback Errors Explains how to handle errors that occur during the test run. Teamwork and Integration Into QA Process Explains how to share TestComplete projects with teammates and how to integrate your TestComplete tests into the build, development and quality assurance processes adopted in your organization. Specific for Testing Desktop Applications Naming Objects This section provides information on how TestComplete names processes, windows and controls. Simulating User Actions This section describes how to simulate mouse clicks, keystrokes and selecting menu items with TestComplete. Working With Applications Object and Controls 2015 SmartBear Software
132 132 Where to Go Next This section contains topics that explain how to perform specific actions over test objects and retrieve data from them. Enhancing Tests Provides information about various TestComplete features that help you enhance your tests (how to handle events, how to work with ActiveX objects, files and databases, and so on). Specific for Testing Web Applications Testing Web Applications Contains basic information on testing mobile applications with TestComplete. Creating and Recording Web Tests Explains the basics of recording and creating automated tests for web applications. Finding Objects on Web Pages Describes various methods for locating web page elements. Cross-Browser Testing Explains how to create browser-independent tests in TestComplete. Specific for Testing Mobile Applications Android Applications Testing Android Applications Contains basic information on testing Android applications with TestComplete. Creating Tests for Android Open Applications Provides complete information on testing Android applications that were prepared for TestComplete. Simulating User Actions Over Android Devices Explains how to simulate various user actions like touches, swipes and so on over your Android devices. ios Applications Testing ios Applications Contains basic information on testing ios applications. Preparing Applications, Devices and Test Computers for ios Testing Explains how to prepare ios applications, devices, test computers and TestComplete for testing. Simulating User Actions on ios Applications Explains how to simulate user actions like touches and keystrokes on ios applications. smartbear.com TestComplete by SmartBear Software
133 Technical Support and Resources 133 Technical Support and Resources If you have questions, problems or need help with TestComplete, contact our support team at: The support team will answer you via and all further communication will be made via . However, to start the conversation, please use the Contact Support Form. You can also ask questions, search for answers, exchange comments and suggestions on our forums, find answers to your question in the list of the frequently asked questions, watch video tutorials and screencasts, read blogs and technical papers and take part in TestComplete training seminars offered by SmartBear. For information on our support offerings, please visit our web site at SmartBear Software
134 134 Index Index A Analyzing recorded test Android Desktop Web Analyzing recorded tests Mobile Analyzing test results Desktop Mobile... 92, 124 Web Android applications testing Automated testing... 5 B Black-box applications... 9 C Checkpoints... 10, 26, 81 Creating... 26, 81 Creating Desktop Projects Web Projects Creating tests Desktop Mobile (Android)... 75, 107 Web D Desktop applications testing F Functional testing... 5 I ios applications testing K Keyword tests... 5 L Log Desktop Jump to source... 42, 65, 94 Web M Mapping object names... 37, 61 Mobile applications testing... 69, 98 Mobile Screen N Name mapping... 37, 61 NameMapping Correcting identification properties Naming objects... 8 O Object Browser panel... 7 Object model... 8 Object naming... 8 Open Applications P Panels... 7 Preparing Android application smartbear.com TestComplete by SmartBear Software
135 Index Android device ios application ios device Preparing for mobile testing... 70, 99 Project Explorer panel... 7 Project items... 6 Project suites... 6 Projects... 6 Desktop Mobile (Android) Mobile (ios) Web R Recording tests Desktop Web Running tests Batch runs Desktop Different browser Initial conditions... 38, 61, 90 Mobile... 90, 122 Multiple devices... 95, 128 Pausing... 39, 62, 91, 123 Stopping... 39, 62, 91, 123 Web S Scripts... 5 Simulating user actions... 36, 60 Stores Support and resources T Technical support and resources Test log Desktop Jump to source... 42, 65, 94 Web Test object model... 8 Test projects... 6 Creating desktop project Creating mobile project (Android) Creating mobile project (ios)... 98, 105 Creating web project Test results Desktop Jump to source... 42, 65, 94 Mobile (Android) Mobile (ios) Resolving errors... 42, 65, 94 Web Tested applications Desktop Mobile... 74, 105 Web Testing About automated testing... 5 Test types... 5 Tests Analyzing recorded test... 33, 58, 87, 118 Analyzing results... 40, 63, 92, 124 Creating... 20, 48, 75, 107 Recording... 20, 48 Running... 38, 61, 90, 122 Test types... 5 U UI testing... 5 User interface overview... 7 W Web applications testing White-box applications SmartBear Software
Copyright Notice. 2013 SmartBear Software. All rights reserved.
USER MANUAL Copyright Notice Automated Build Studio, as described in this on-line help system, is licensed under the software license agreement distributed with the product. The software may be used or
Microsoft Visual Studio Integration Guide
Microsoft Visual Studio Integration Guide MKS provides a number of integrations for Integrated Development Environments (IDEs). IDE integrations allow you to access MKS Integrity s workflow and configuration
For Introduction to Java Programming, 5E By Y. Daniel Liang
Supplement H: NetBeans Tutorial For Introduction to Java Programming, 5E By Y. Daniel Liang This supplement covers the following topics: Getting Started with NetBeans Creating a Project Creating, Mounting,
NETWORK PRINT MONITOR User Guide
NETWORK PRINT MONITOR User Guide Legal Notes Unauthorized reproduction of all or part of this guide is prohibited. The information in this guide is subject to change without notice. We cannot be held liable
Microsoft Access 2010 handout
Microsoft Access 2010 handout Access 2010 is a relational database program you can use to create and manage large quantities of data. You can use Access to manage anything from a home inventory to a giant
13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES
LESSON 13 Managing Devices OBJECTIVES After completing this lesson, you will be able to: 1. Open System Properties. 2. Use Device Manager. 3. Understand hardware profiles. 4. Set performance options. Estimated
for Sage 100 ERP Business Insights Overview Document
for Sage 100 ERP Business Insights Document 2012 Sage Software, Inc. All rights reserved. Sage Software, Sage Software logos, and the Sage Software product and service names mentioned herein are registered
Citrix EdgeSight for Load Testing User s Guide. Citrix EdgeSight for Load Testing 3.8
Citrix EdgeSight for Load Testing User s Guide Citrix EdgeSight for Load Testing 3.8 Copyright Use of the product documented in this guide is subject to your prior acceptance of the End User License Agreement.
Legal Notes. Regarding Trademarks. 2012 KYOCERA Document Solutions Inc.
Legal Notes Unauthorized reproduction of all or part of this guide is prohibited. The information in this guide is subject to change without notice. We cannot be held liable for any problems arising from
Introduction to MS WINDOWS XP
Introduction to MS WINDOWS XP Mouse Desktop Windows Applications File handling Introduction to MS Windows XP 2 Table of Contents What is Windows XP?... 3 Windows within Windows... 3 The Desktop... 3 The
How To Use Query Console
Query Console User Guide 1 MarkLogic 8 February, 2015 Last Revised: 8.0-1, February, 2015 Copyright 2015 MarkLogic Corporation. All rights reserved. Table of Contents Table of Contents Query Console User
DataPA OpenAnalytics End User Training
DataPA OpenAnalytics End User Training DataPA End User Training Lesson 1 Course Overview DataPA Chapter 1 Course Overview Introduction This course covers the skills required to use DataPA OpenAnalytics
Citrix EdgeSight for Load Testing User s Guide. Citrx EdgeSight for Load Testing 2.7
Citrix EdgeSight for Load Testing User s Guide Citrx EdgeSight for Load Testing 2.7 Copyright Use of the product documented in this guide is subject to your prior acceptance of the End User License Agreement.
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
Using the Query Analyzer
Using the Query Analyzer Using the Query Analyzer Objectives Explore the Query Analyzer user interface. Learn how to use the menu items and toolbars to work with SQL Server data and objects. Use object
Create a New Database in Access 2010
Create a New Database in Access 2010 Table of Contents OVERVIEW... 1 CREATING A DATABASE... 1 ADDING TO A DATABASE... 2 CREATE A DATABASE BY USING A TEMPLATE... 2 CREATE A DATABASE WITHOUT USING A TEMPLATE...
WebLOAD IDE User's Guide Version 8.0
WebLOAD IDE User's Guide Version 8.0 RadView Software The software supplied with this document is the property of RadView Software and is furnished under a licensing agreement. Neither the software nor
DEPLOYING A VISUAL BASIC.NET APPLICATION
C6109_AppendixD_CTP.qxd 18/7/06 02:34 PM Page 1 A P P E N D I X D D DEPLOYING A VISUAL BASIC.NET APPLICATION After completing this appendix, you will be able to: Understand how Visual Studio performs deployment
Microsoft Access 2010 Part 1: Introduction to Access
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3
IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules
IBM Operational Decision Manager Version 8 Release 5 Getting Started with Business Rules Note Before using this information and the product it supports, read the information in Notices on page 43. This
Publishing Geoprocessing Services Tutorial
Publishing Geoprocessing Services Tutorial Copyright 1995-2010 Esri All rights reserved. Table of Contents Tutorial: Publishing a geoprocessing service........................ 3 Copyright 1995-2010 ESRI,
14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë
14.1 bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë bî~äì~íáåö=oéñäéåíáçå=ñçê=emi=rkfui=~åç=lééåsjp=eçëíë This guide walks you quickly through key Reflection features. It covers: Getting Connected
Configuration for Professional Client Access
In a network environment, in order for the clients to access the data over the network, you will need to set up a network share to the data file. CREATING A NETWORK SHARE There may be slight differences
Infor ERP BaanIV / Baan 5.0 / LN 6.1. User's Guide for Worktop 2.4
Infor ERP BaanIV / Baan 5.0 / LN 6.1 User's Guide for Worktop 2.4 Copyright 2008 Infor All rights reserved. The word and design marks set forth herein are trademarks and/or registered trademarks of Infor
Bitrix Site Manager ASP.NET. Installation Guide
Bitrix Site Manager ASP.NET Installation Guide Contents Introduction... 4 Chapter 1. Checking for IIS Installation... 5 Chapter 2. Using An Archive File to Install Bitrix Site Manager ASP.NET... 7 Preliminary
PowerLogic ION Enterprise 5.6
PowerLogic ION Enterprise 5.6 Power Management Software User Guide April 2007 Notices This section describes the symbols used in this guide. Danger This alerts you to things that may cause serious injury
IBM Rational University. Essentials of IBM Rational Functional Tester, Java Scripting. RT545 February 2009 Student Manual Part No.
IBM Rational University Essentials of IBM Rational Functional Tester, Java Scripting RT545 February 2009 Student Manual Part No. 800-27480-000 IBM Corporation Rational University RT545 Essentials of IBM
Creating a Web Service using IBM Rational HATS. For IBM System i (5250) Creating a Web Service using HATS 1
Creating a Web Service using IBM Rational HATS For IBM System i (5250) Creating a Web Service using HATS 1 Lab instructions This lab teaches you how to use IBM Rational HATS to create a Web service that
Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms
Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint 2013. InfoPath 2013 Web Enabled (Browser) forms InfoPath 2013 Web Enabled (Browser) forms Creating Web Enabled
Access 2007 Creating Forms Table of Contents
Access 2007 Creating Forms Table of Contents CREATING FORMS IN ACCESS 2007... 3 UNDERSTAND LAYOUT VIEW AND DESIGN VIEW... 3 LAYOUT VIEW... 3 DESIGN VIEW... 3 UNDERSTAND CONTROLS... 4 BOUND CONTROL... 4
Subscribe to RSS in Outlook 2007. Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7
Exchange Outlook 007 How To s / RSS Feeds of 7 RSS (Really Simple Syndication) is a method of publishing and distributing content on the Web. When you subscribe to an RSS feed also known as a news feed
SMART Ink 1.5. Windows operating systems. Scan the following QR code to view the SMART Ink Help on your smart phone or other mobile device.
SMART Ink 1.5 Windows operating systems User s guide Scan the following QR code to view the SMART Ink Help on your smart phone or other mobile device. Trademark notice SMART Ink, SMART Notebook, SMART
Timeless Time and Expense Version 3.0. Copyright 1997-2009 MAG Softwrx, Inc.
Timeless Time and Expense Version 3.0 Timeless Time and Expense All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including
MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC
MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL
Building and Using Web Services With JDeveloper 11g
Building and Using Web Services With JDeveloper 11g Purpose In this tutorial, you create a series of simple web service scenarios in JDeveloper. This is intended as a light introduction to some of the
How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip
Load testing with WAPT: Quick Start Guide This document describes step by step how to create a simple typical test for a web application, execute it and interpret the results. A brief insight is provided
Introduction to Microsoft Access 2003
Introduction to Microsoft Access 2003 Zhi Liu School of Information Fall/2006 Introduction and Objectives Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft
Backup Assistant. User Guide. NEC NEC Unified Solutions, Inc. March 2008 NDA-30282, Revision 6
Backup Assistant User Guide NEC NEC Unified Solutions, Inc. March 2008 NDA-30282, Revision 6 Liability Disclaimer NEC Unified Solutions, Inc. reserves the right to change the specifications, functions,
DiskBoss. File & Disk Manager. Version 2.0. Dec 2011. Flexense Ltd. www.flexense.com [email protected]. File Integrity Monitor
DiskBoss File & Disk Manager File Integrity Monitor Version 2.0 Dec 2011 www.flexense.com [email protected] 1 Product Overview DiskBoss is an automated, rule-based file and disk manager allowing one to
PTC Integrity Eclipse and IBM Rational Development Platform Guide
PTC Integrity Eclipse and IBM Rational Development Platform Guide The PTC Integrity integration with Eclipse Platform and the IBM Rational Software Development Platform series allows you to access Integrity
Data Tool Platform SQL Development Tools
Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6
Appendix A How to create a data-sharing lab
Appendix A How to create a data-sharing lab Creating a lab involves completing five major steps: creating lists, then graphs, then the page for lab instructions, then adding forms to the lab instructions,
Windows XP Pro: Basics 1
NORTHWEST MISSOURI STATE UNIVERSITY ONLINE USER S GUIDE 2004 Windows XP Pro: Basics 1 Getting on the Northwest Network Getting on the Northwest network is easy with a university-provided PC, which has
Enterprise Reporting Advanced Web Intelligence Training. Enterprise Reporting Services
Enterprise Reporting Advanced Web Intelligence Training Enterprise Reporting Services Table of Contents Chapter Page 1 Overview 4 2 Web Intelligence Access 8 3 BI Launch Pad Navigation 12 4 Nested Query
Load testing with. WAPT Cloud. Quick Start Guide
Load testing with WAPT Cloud Quick Start Guide This document describes step by step how to create a simple typical test for a web application, execute it and interpret the results. 2007-2015 SoftLogica
Server Manual. For Administrators of Cameleon Version 4
Server Manual For Administrators of Cameleon Version 4 Cameleon Version 4 Server Manual For Administrators of Cameleon Version 4 R4-07OCT04 Copyright 2004 360 Surveillance Inc. Camera Cameleon is a trademark
PowerLogic ION Enterprise 6.0
70002-0298-00 06/2009 PowerLogic ION Enterprise 6.0 Power management software User guide Notices This section describes the symbols used in this guide. Danger This alerts you to things that may cause
Hosting Users Guide 2011
Hosting Users Guide 2011 eofficemgr technology support for small business Celebrating a decade of providing innovative cloud computing services to small business. Table of Contents Overview... 3 Configure
Appointment Scheduler
EZClaim Appointment Scheduler User Guide Last Update: 11/19/2008 Copyright 2008 EZClaim This page intentionally left blank Contents Contents... iii Getting Started... 5 System Requirements... 5 Installing
Central Management Software CV3-M1024
Table of Contents Chapter 1. User Interface Overview...5 Chapter 2. Installation...6 2.1 Beginning Installation...6 2.2 Starting the CMS software...10 2.3 Starting it from the Start menu...10 2.4 Starting
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
EVALUATION ONLY. WA2088 WebSphere Application Server 8.5 Administration on Windows. Student Labs. Web Age Solutions Inc.
WA2088 WebSphere Application Server 8.5 Administration on Windows Student Labs Web Age Solutions Inc. Copyright 2013 Web Age Solutions Inc. 1 Table of Contents Directory Paths Used in Labs...3 Lab Notes...4
StrikeRisk v6.0 IEC/EN 62305-2 Risk Management Software Getting Started
StrikeRisk v6.0 IEC/EN 62305-2 Risk Management Software Getting Started Contents StrikeRisk v6.0 Introduction 1/1 1 Installing StrikeRisk System requirements Installing StrikeRisk Installation troubleshooting
WS_FTP Professional 12
WS_FTP Professional 12 Tools Guide Contents CHAPTER 1 Introduction Ways to Automate Regular File Transfers...5 Check Transfer Status and Logs...6 Building a List of Files for Transfer...6 Transfer Files
Bitrix Site Manager 4.1. User Guide
Bitrix Site Manager 4.1 User Guide 2 Contents REGISTRATION AND AUTHORISATION...3 SITE SECTIONS...5 Creating a section...6 Changing the section properties...8 SITE PAGES...9 Creating a page...10 Editing
Personal Call Manager User Guide. BCM Business Communications Manager
Personal Call Manager User Guide BCM Business Communications Manager Document Status: Standard Document Version: 04.01 Document Number: NN40010-104 Date: August 2008 Copyright Nortel Networks 2005 2008
Microsoft Access Basics
Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision
Getting Started with Access 2007
Getting Started with Access 2007 Table of Contents Getting Started with Access 2007... 1 Plan an Access 2007 Database... 2 Learning Objective... 2 1. Introduction to databases... 2 2. Planning a database...
Microsoft Office Access 2007 which I refer to as Access throughout this book
Chapter 1 Getting Started with Access In This Chapter What is a database? Opening Access Checking out the Access interface Exploring Office Online Finding help on Access topics Microsoft Office Access
Working with Excel in Origin
Working with Excel in Origin Limitations When Working with Excel in Origin To plot your workbook data in Origin, you must have Excel version 7 (Microsoft Office 95) or later installed on your computer
Software Application Tutorial
Software Application Tutorial Copyright 2005, Software Application Training Unit, West Chester University. No Portion of this document may be reproduced without the written permission of the authors. For
Installing LearningBay Enterprise Part 2
Installing LearningBay Enterprise Part 2 Support Document Copyright 2012 Axiom. All Rights Reserved. Page 1 Please note that this document is one of three that details the process for installing LearningBay
Before you can use the Duke Ambient environment to start working on your projects or
Using Ambient by Duke Curious 2004 preparing the environment Before you can use the Duke Ambient environment to start working on your projects or labs, you need to make sure that all configuration settings
Kaldeera Workflow Designer 2010 User's Guide
Kaldeera Workflow Designer 2010 User's Guide Version 1.0 Generated May 18, 2011 Index 1 Chapter 1: Using Kaldeera Workflow Designer 2010... 3 1.1 Getting Started with Kaldeera... 3 1.2 Importing and exporting
DiskPulse DISK CHANGE MONITOR
DiskPulse DISK CHANGE MONITOR User Manual Version 7.9 Oct 2015 www.diskpulse.com [email protected] 1 1 DiskPulse Overview...3 2 DiskPulse Product Versions...5 3 Using Desktop Product Version...6 3.1 Product
Developing Rich Web Applications with Oracle ADF and Oracle WebCenter Portal
JOIN TODAY Go to: www.oracle.com/technetwork/java OTN Developer Day Oracle Fusion Development Developing Rich Web Applications with Oracle ADF and Oracle WebCenter Portal Hands on Lab (last update, June
Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.
1 2 3 4 Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5. It replaces the previous tools Database Manager GUI and SQL Studio from SAP MaxDB version 7.7 onwards
Microsoft Office Access 2007 Basics
Access(ing) A Database Project PRESENTED BY THE TECHNOLOGY TRAINERS OF THE MONROE COUNTY LIBRARY SYSTEM EMAIL: [email protected] MONROE COUNTY LIBRARY SYSTEM 734-241-5770 1 840 SOUTH ROESSLER
USER GUIDE MANTRA WEB EXTRACTOR. www.altiliagroup.com
USER GUIDE MANTRA WEB EXTRACTOR www.altiliagroup.com Page 1 of 57 MANTRA WEB EXTRACTOR USER GUIDE TABLE OF CONTENTS CONVENTIONS... 2 CHAPTER 2 BASICS... 6 CHAPTER 3 - WORKSPACE... 7 Menu bar 7 Toolbar
Application. 1.1 About This Tutorial. 1.1.1 Tutorial Requirements. 1.1.2 Provided Files
About This Tutorial 1Creating an End-to-End HL7 Over MLLP Application 1.1 About This Tutorial 1.1.1 Tutorial Requirements 1.1.2 Provided Files This tutorial takes you through the steps of creating an end-to-end
Kentico CMS 7.0 E-commerce Guide
Kentico CMS 7.0 E-commerce Guide 2 Kentico CMS 7.0 E-commerce Guide Table of Contents Introduction 8... 8 About this guide... 8 E-commerce features Getting started 11... 11 Overview... 11 Installing the
Presentations and PowerPoint
V-1.1 PART V Presentations and PowerPoint V-1.2 Computer Fundamentals V-1.3 LESSON 1 Creating a Presentation After completing this lesson, you will be able to: Start Microsoft PowerPoint. Explore the PowerPoint
Recording Supervisor Manual Presence Software
Presence Software Version 9.2 Date: 09/2014 2 Contents... 3 1. Introduction... 4 2. Installation and configuration... 5 3. Presence Recording architectures Operating modes... 5 Integrated... with Presence
2010 Ing. Punzenberger COPA-DATA GmbH. All rights reserved.
2010 Ing. Punzenberger COPA-DATA GmbH All rights reserved. Distribution and/or reproduction of this document or parts thereof in any form are permitted solely with the written permission of the company
Content Author's Reference and Cookbook
Sitecore CMS 6.5 Content Author's Reference and Cookbook Rev. 110621 Sitecore CMS 6.5 Content Author's Reference and Cookbook A Conceptual Overview and Practical Guide to Using Sitecore Table of Contents
Context-sensitive Help Guide
MadCap Software Context-sensitive Help Guide Flare 11 Copyright 2015 MadCap Software. All rights reserved. Information in this document is subject to change without notice. The software described in this
Search help. More on Office.com: images templates
Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can
Password Memory 6 User s Guide
C O D E : A E R O T E C H N O L O G I E S Password Memory 6 User s Guide 2007-2015 by code:aero technologies Phone: +1 (321) 285.7447 E-mail: [email protected] Table of Contents Password Memory 6... 1
Database Forms and Reports Tutorial
Database Forms and Reports Tutorial Contents Introduction... 1 What you will learn in this tutorial... 2 Lesson 1: Create First Form Using Wizard... 3 Lesson 2: Design the Second Form... 9 Add Components
Developing SQL and PL/SQL with JDeveloper
Seite 1 von 23 Developing SQL and PL/SQL with JDeveloper Oracle JDeveloper 10g Preview Technologies used: SQL, PL/SQL An Oracle JDeveloper Tutorial September 2003 Content This tutorial walks through the
How To Use Senior Systems Cloud Services
Senior Systems Cloud Services In this guide... Senior Systems Cloud Services 1 Cloud Services User Guide 2 Working In Your Cloud Environment 3 Cloud Profile Management Tool 6 How To Save Files 8 How To
Vodafone PC SMS 2010. (Software version 4.7.1) User Manual
Vodafone PC SMS 2010 (Software version 4.7.1) User Manual July 19, 2010 Table of contents 1. Introduction...4 1.1 System Requirements... 4 1.2 Reply-to-Inbox... 4 1.3 What s new?... 4 2. Installation...6
Debugging Java Applications
Debugging Java Applications Table of Contents Starting a Debugging Session...2 Debugger Windows...4 Attaching the Debugger to a Running Application...5 Starting the Debugger Outside of the Project's Main
User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream
User Manual Onsight Management Suite Version 5.1 Another Innovation by Librestream Doc #: 400075-06 May 2012 Information in this document is subject to change without notice. Reproduction in any manner
Creating, Running, and Scheduling Scripts
T H R E E Creating, Running, and Scheduling Scripts 3 When learning any new development technology, some of the most important questions are the basic "how to" nuts and bolts questions. How do I create
Setting up SQL Translation Framework OBE for Database 12cR1
Setting up SQL Translation Framework OBE for Database 12cR1 Overview Purpose This tutorial shows you how to use have an environment ready to demo the new Oracle Database 12c feature, SQL Translation Framework,
INTRODUCTION TO ATRIUM... 2 SYSTEM REQUIREMENTS... 2 TECHNICAL DETAILS... 2 LOGGING INTO ATRIUM... 3 SETTINGS... 4 NAVIGATION PANEL...
INTRODUCTION TO ATRIUM... 2 SYSTEM REQUIREMENTS... 2 TECHNICAL DETAILS... 2 LOGGING INTO ATRIUM... 3 SETTINGS... 4 CONTROL PANEL... 4 ADDING GROUPS... 6 APPEARANCE... 7 BANNER URL:... 7 NAVIGATION... 8
SHAREPOINT 2010 FOUNDATION FOR END USERS
SHAREPOINT 2010 FOUNDATION FOR END USERS WWP Training Limited Page i SharePoint Foundation 2010 for End Users Fundamentals of SharePoint... 6 Accessing SharePoint Foundation 2010... 6 Logging in to your
Working with SQL Server Integration Services
SQL Server Integration Services (SSIS) is a set of tools that let you transfer data to and from SQL Server 2005. In this lab, you ll work with the SQL Server Business Intelligence Development Studio to
WebSphere Business Monitor
WebSphere Business Monitor Debugger 2010 IBM Corporation This presentation provides an overview of the monitor model debugger in WebSphere Business Monitor. WBPM_Monitor_Debugger.ppt Page 1 of 23 Goals
User Guide QAD Customer Relationship Management. Introduction Sales Management Marketing Management Customer Service
User Guide QAD Customer Relationship Management Introduction Sales Management Marketing Management Customer Service 78-0707B QAD CRM 6.1 September 2008 This document contains proprietary information that
Lab Activity File Management with Windows Explorer Windows XP, Vista, Windows 7 and Windows 8 Brought to you by RMRoberts.com
Lab Activity File Management with Windows Explorer Windows XP, Vista, Windows 7 and Windows 8 Brought to you by RMRoberts.com After completing this laboratory activity, you will be able to: o Open and
Release Document Version: 1.4-2013-05-30. User Guide: SAP BusinessObjects Analysis, edition for Microsoft Office
Release Document Version: 1.4-2013-05-30 User Guide: SAP BusinessObjects Analysis, edition for Microsoft Office Table of Contents 1 About this guide....6 1.1 Who should read this guide?....6 1.2 User profiles....6
After going through this lesson you would be able to:
18 :: Data Entry Operations 2 Operating System 2.1 INTRODUCTION The operating system in these days uses a graphical user interface (GUI). Here you do not have to remember all the commands by heart. The
Test Automation Integration with Test Management QAComplete
Test Automation Integration with Test Management QAComplete This User's Guide walks you through configuring and using your automated tests with QAComplete's Test Management module SmartBear Software Release
Windows XP File Management
Windows XP File Management As you work with a computer creating more and more documents, you need to find a way to keep this information organized. Without a good organizational method, all your files
ODBC Driver Version 4 Manual
ODBC Driver Version 4 Manual Revision Date 12/05/2007 HanDBase is a Registered Trademark of DDH Software, Inc. All information contained in this manual and all software applications mentioned in this manual
Operating Systems. and Windows
Operating Systems and Windows What is an Operating System? The most important program that runs on your computer. It manages all other programs on the machine. Every PC has to have one to run other applications
Outlook Email. User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA 19107 215-503-7500
Outlook Email User Guide IS TRAINING CENTER 833 Chestnut St, Suite 600 Philadelphia, PA 19107 215-503-7500 This page intentionally left blank. TABLE OF CONTENTS Getting Started... 3 Opening Outlook...
