Once you have created a test that checks date operations, as described in “Checking Dates,” you run your test to check how your application responds to date information in your test.
Note that the Enable date operations option must be selected in the General category of the Options dialog box when you run a test with date checkpoints. Otherwise, the date checkpoints will fail.
When you run a test that checks date operations, WinRunner interprets the test script line-by-line and performs the required operations on your application. At each checkpoint in the test script, it compares the expected dates with the actual dates in your application.
Before you run your test, you first specify date operations settings and the general run mode of the script.
Date operations run mode settings specify:
The general run mode settings, Verify, Debug, and Update, are described earlier in this chapter. Note that during a test run in Update mode, dates in the script are not aged or translated to a new format.
Setting the Date Operations Run Mode
Before you run a test that checks date operations, you set the date operations run mode.
To set the date operations run mode:
You can also open this dialog box from the Run Test dialog box by clicking the Change button (only when the Enable date operations check box is selected in the General category of the General Options dialog box). For more information on the General Options dialog box, see “Setting Global Testing Options
Running Tests to Check Date Operations
After you set the date operations run mode, you can run your test script.
To run a test that checks date operations:
Note that in Update mode, dates in the script are not aged or translated to a new format. In Debug mode the test script immediately starts to run using the date operations run mode settings defined in the Date Operations Run Mode dialog box.
If you selected Verify mode, the Run Test dialog box for date operations opens.
Changing Date Operations Run Mode Settings with TSL
You can set conditions for running a test checking date operations using the following TSL functions:
date_align_day ( align_mode, day_in_week );
date_disable_format ( format );
date_enable_format ( format );
date_leading_zero ( mode );
date_set_aging ( format, type, days, months, years );
date_set_run_mode ( mode );
date_set_year_limits ( min_year, max_year );
date_set_year_threshold ( number );
WinRunner Related Interview Questions
|SILK TEST Interview Questions||LoadRunner Interview Questions|
|WinRunner Interview Questions||HTML Interview Questions|
|QTP Interview Questions||Manual Testing Interview Questions|
|OpenStack Interview Questions||Automation Testing Interview Questions|
|API testing Interview Questions||Rational robot Interview Questions|
|Selenium IDE Interview Questions||Performance Testing Interview Questions|
|Test Director Interview Questions|
Winrunner At A Glance
Understanding How Winrunner Identifies Gui Objects
Understanding Basic Gui Map Concepts
Working In The Global Gui Map File Mode
Editing The Gui Map
Merging Gui Map Files
Configuring The Gui Map
Learning Virtual Objects
Checking Gui Objects
Working In The Gui Map File Per Test Mode
Working With Web Objects
Working With Activex And Visual Basic Controls
Checking Powerbuilder Applications
Checking Table Contents
Creating Data-driven Tests
Synchronizing The Test Run
Defining And Using Recovery Scenarios
Handling Web Exceptions
Using Regular Expressions
Enhancing Your Test Scripts With Programming
Creating User-defined Functions
Creating Compiled Modules
Calling Functions From External Libraries
Creating Dialog Boxes For Interactive Input
Understanding Test Runs
Analyzing Test Results
Running Batch Tests
Running Tests From The Command Line
Controlling Your Test Run
Setting Properties For A Single Test
Setting Global Testing Options
Customizing The Test Script Editor
Customizing The Winrunner User Interface
Setting Testing Options From A Test Script
Customizing The Function Generator
Initializing Special Configurations
Integrating With Quicktest Professional
Managing The Testing Process
Testing Systems Under Load
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.