background image
<< Testcase - The VerifyValue method | Testcase - Defining the transformation rules >>
Testcase - Testing applications
<< Testcase - The VerifyValue method | Testcase - Defining the transformation rules >>
User's Guide
195
8 G
ENERALIZING
A
T
ESTCASE
Testing applications that have been made Year 2000 compliant
Testing applications that have been made Year 2000 compliant
You might have to change some of your applications over the upcoming
months to be Year 2000 compliant. Specifically, you will probably want to
change date fields in your application from two-digit years (such as 98) to
four-digit years (such as 1998). But you will want your existing tests (which
process two-digit years) to continue to run--without modification--against
your converted application.
SilkTest supports this requirement. By performing the following steps, you
will be able to run the same tests that you have developed for your non-Year
2000­compliant application (which expects two-digit years) against the
application that you have converted to be Year 2000 compliant (which
expects four-digit years). SilkTest will automatically convert dates when
needed to conform to what your updated, Year 2000­compliant application is
expecting.
To do this you:
1
Enable Year 2000 date transformation in SilkTest.
2
Define the rules that SilkTest should use in transforming dates for Year
2000 compliance.
3
Run your existing tests against your Year 2000­compliant application.
SilkTest will automatically convert the dates your tests send to the
application to what the application is expecting. Similarly, when running
your tests, SilkTest will transform the expected values in your existing
verifications so they match the updated expected values in your Year
2000­compliant application.
SilkTest will log a message whenever it transforms a date when running a
script.
Enabling Year 2000 date transformation
Procedure To enable Year 2000 date transformation:
1
Select Options/Runtime.
The Runtime Options dialog displays.