Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Using UFT Developer for Web Apps (Visual Studio and Csharp)
Rating: 4.7 out of 5(34 ratings)
3,089 students

Using UFT Developer for Web Apps (Visual Studio and Csharp)

Shift-left functional testing using standard programming languages, IDEs, and testing frameworks of choice
Created byAmir Khan
Last updated 3/2021
English

What you'll learn

  • UI Testautomation with UFT Developer
  • Building Basic Test Scripts
  • Working with Object Identification Center
  • Working with Application Models
  • Using Reporter Object
  • Define Custom Checkpoints
  • Screen Recording
  • Parametrization
  • Data Driven Testing
  • Reusable Functions

Course content

1 section11 lectures1h 59m total length
  • Introduction to UFT Developer Automation for Web Applications (Basic Course)3:01

    UFT Developer helps you develop automated tests for a wide range of technologies, using standard IDEs with modern programming languages. UFT Developer requires familiarity with the basics of programming in the language you use to develop your tests.

    This UFT Developer help center covers UFT Developer versions 15.0 through 15.0.2. Any version-specific changes are indicated where relevant.

    Download the Trial for UFT Developer from resources.

  • Build Application Models for Web App21:25

    An application model is comprised of a hierarchy of test objects that correspond to the structure of the actual objects in your AUT or a specific area of the AUT.

    When you create a new UFT Developer application model, two files are created:

    • .tsrx . An XML representation of the application model and its objects.

      This file is created when you create the application model item or project, and is updated regularly when you add test objects to your application model (using the Object Identification Center, in the Application Model editor, or directly in the file itself).

    • .tsrx.cs or .java. A file containing the code for the application model class.

      Each application model is compiled into a class that can be instantiated in your test, enabling you to access the complete test object model of your application.

      This file is generated from the .tsrx file. There are several ways to generate this file, as described in Generate application model code.

    Using the application model enables you to maintain your test objects in a single location for use across your entire testing suite, and helps you write your code more quickly, without the need to write manual programmatic descriptions for each object.

  • Build Basic Test for Web App22:56

    About the test object hierarchy in the application model

    UFT Developer identifies test objects within context of their parent objects. The top-level parent represents the host application, such as a browser or window.

    When creating test objects manually, you define the top-level parent object and then define the other objects as child objects.

    When working with the Application Model, you can define an application model without the parent test object inside.

    More specifically:

    • For Web, Mobile, and SAP GUI for Windows applications, the parent object is never defined within the Application model.

    • For other Windows-based applications, you can decide whether the parent window is defined inside the model or external to it, in your test.

    When you create an instance of your application model class in a testing project, you can call it with or, for Windows-based applications, without a constructor.

    • If you call it without a constructor: appmodel MyApp = new appmodel(); then the top-level parent defined in your application model is used. (Relevant only for Windows-based applications.)

    • Alternatively, you can define your parent object (such as a Window, GuiSession, or Browser) within the scope of your test and then pass that parent object as the context for the application model class.

      For example:

      IBrowser MyBrowser;MyBrowser = BrowserFactory.Launch(BrowserType.Chrome);appmodel MyApp = new appmodel(MyBrowser);

    Using this model, you can test objects from the same application model using different browsers or hosting applications.

  • Calculation, output and custom checkpoints19:33
  • Parametrization and Data Driven Testing11:54
  • Working with Native Object Properties8:42

    If the test object methods and properties available for a particular test object do not provide the functionality you need, you can access the native methods and properties of the run-time object in your application using the relevant property/method/function for your programming language.

    For example, suppose you have a Web edit test object defined in your test called searchBox. You could access the native (run-time) search box object, and then use the native isDisabled property to make sure your search box has the expected state.

  • Working with the Reporter Object10:11

    When you run UFT Developer tests created from a UFT Developer project template, an HTML report is automatically generated. The report includes summary information about the run, as well as detailed information about the captured steps.

  • Using the Test Recorder6:21
  • RunJavaScript on BrowserPage2:51
  • Utilizing ScreenCapture3:37
  • Additional Settings & Summary8:38

Requirements

  • Visual Studio 2019 Installation
  • C# Basic Knowledge
  • .NET Basic Knowledge
  • MsTest Installation

Description

UFT Developer helps you develop automated tests for a wide range of technologies, using standard IDEs with modern programming languages. UFT Developer requires familiarity with the basics of programming in the language you use to develop your tests.

Requirements prior course:

  • Install the UFT Developer runtime engine on any machine where you want to run UFT Developer tests.

  • Install one or more supported IDEs and the relevant UFT Developer plugins on any machine where you want to write and edit UFT Developer tests.

In this course, you will learn how to use UFT Developer for Csharp (C#) using Visual Studio and MsTest as testing framework.

In the IDE of your choice, create a UFT Developer testing project, use UFT Developer to create test object descriptions and write tests that can perform operations on your applications.

Create a testing project

Create a UFT Developer testing project in the IDE of your choice, using the project templates provided with the UFT Developer plugins or use your own custom framework.

Customize your test settings

Customize the UFT Developer runtime server settings and report options.

Define test objects

Create test object descriptions that enable UFT Developer to identify the objects in your application and can withstand changes in the application you’re testing.

Write programmatic descriptions or use the visually oriented tools that UFT Developer offers to provide an interface to the tested application and its objects.

Write tests

After you create test object descriptions, write automated tests whose steps call the methods and properties of these UFT Developer test objects.

Add code to verify application behavior

Verify that the objects in your application look and behave as you expect.

When these special steps return false results, the step and test fail, but no exception is thrown and your test continues to run.

This course will cover the following:

  • Build Application Models

  • Create Test Scripts

  • Running Test Scripts

  • Calculation and custom checkpoints

  • Output Values and Parametrization

  • Data Driven Testing

  • Screen Recorder

  • Using Reporter Object

  • Working with Test Recorder

  • Summary

Upon successful completion of this course, you will be eligible to:

  • be more productive

  • better collaborate

  • use agile methodologies in a smarter way

  • support the software delivery lifecycle

  • take on lead roles in your projects and advance in your career


Who this course is for:

  • Developer
  • Tester
  • Automation Engineer