lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] wx_test_paste_census.cpp


From: Greg Chicares
Subject: [lmi] wx_test_paste_census.cpp
Date: Fri, 12 Dec 2014 23:36:29 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

// ERASE THIS BLOCK COMMENT WHEN IMPLEMENTATION COMPLETE. The block
// comment below changes the original specification, and does not
// yet describe the present code. Desired changes:
//  - Save pastable data inline; don't extract from user manual.
//  - Validate all columns after each step (after initial pasting).
//  - Test change in class defaults (in addition to case defaults).
//  - Place the saved file in 'gui_test_path'.

/// Test pasting spreadsheet data into a census.
///
/// Create a set of data that might reasonably be copied from a
/// spreadsheet. Initially at least, use the data in the user manual:
///   file:///C:/lmi/src/web/lmi/pasting_to_a_census.html
/// Hardcode the data here; don't read them from the user manual.
/// (That didactic example was designed mainly to fit on a web page
/// and to make sense to end users. Some day we might want to make
/// this automated test more comprehensive, without changing the web
/// page.)
///
/// Place that data set on the clipboard and simulate
///   File | New | Census
///   Census | Paste census
/// Make sure it has the expected number of rows. Also check that all
/// the columns pasted are shown by verifying each header: some time
/// ago, the "Payment" and "Death Benefit Option" columns were lost
/// due to a defect. All pasted columns should be shown, along with
/// several others that vary in step with issue-age differences.
///
/// The census manager shows only columns that vary across cells,
/// notably taking into account the case and class default cells.
/// Test this in two ways. First:
///   Census | Edit class defaults [requires focusing a row]
///   change gender to "Unisex"
///   apply to every cell: Yes
/// Verify the expected result: the gender column is still shown
/// (because "Unisex" is not yet the class default), and its value is
/// "Unisex" in every row. Second:
///   Census | Edit case defaults
///   change underwriting class to any different value
///   apply to every cell: Yes
/// Verify the expected result: the underwriting-class column is no
/// longer shown.
///
/// Then save the file in 'gui_test_path'; verify that it exists.

This earlier message discussed the same test:
  http://lists.nongnu.org/archive/html/lmi/2014-11/msg00047.html
and I will soon answer it separately.

Elsewhere I notice this comment:
/// See unit tests in Skeleton::UponTestPasting().
and suggest you consider whether to fold that into this source file.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]