Description
The Web Orders Application Model sample is a Visual Studio test project that includes a TestLeft test. It works with the Web Orders application located on our web site:
http://secure.smartbearsoftware.com/samples/testcomplete11/WebOrders/login.aspx
The sample code starts a web browser, navigates to the tested application, logs in to it, adds a new order and checks whether the order has been added successfully.
The test maps the object hierarchy of the application to an object model and uses the model to locate the needed objects in the application faster. You can examine the model in the WebOrdersApp.cs file of the sample project.
Note: The sample demonstrates creating an advanced test that is close to real-life conditions. If you are new to TestLeft, we recommend that you first follow our Getting Started tutorial to learn how to work with TestLeft and how to create basic tests.
Requirements
-
Microsoft Visual Studio 2015–2019 (Community, Professional, or Enterprise edition)
— or —
Microsoft Visual Studio 2013 (Ultimate, Professional, or Premium edition) -
.NET Framework version 4.5 or later
-
TestLeft 15.40
-
Your computer must have access to the sample web application located on our web site (see above).
Location and Running
You can find the sample project here:
<Users>\Public\Documents\TestLeft 15 Samples\WebOrdersApplicationModel
Note: | Some file managers can display the Shared Documents and Public Documents folders as the Documents folder. |
Compile the project in Visual Studio and run the AddOrderTest test.
See Also
TestLeft Samples
Your First Test With TestLeft - .NET and .NET Core Tutorial