State Form Definition - Form
Note - These testing guidelines assume the user is skilled in the use of, at a minimum, the following:
- State Form Definition
- State Form File Generation
- App Dashboard
- Crystal Report Viewer
Scenario 1: State Form Definition - Field and data validation's
Specific Setup:
- Have a "State Form Definition" file [TestFile] created based on a table [TestTable] that contains two or more numerical fields and any other fields
- For this test, numerical fields [FieldA], [FieldB] and [FieldC] exist and are set to display data when the file is generated
- Have access to the form [TestForm] where data can filed in table [TestTable]
- Have access to form "State Form Definition" and "State Form File Generation"
- An active client [TestClient] exists on the system
Steps
- Open [TestForm]
- Select [TestClient]
- Set [FieldA] to a desired value. For this test "10"
- Set [FieldB] to a desired value. For this test "20"
- Set [FieldC] to a desired value. For this test "5"
- Populate any other desired fields
- Submit the form
- Open the 'State Form Definition' form
- Select "Existing" in the 'New or Existing' field
- Select the [TestFile] from the 'Select State Form' field drop down list
- Click the [Record Definition] section
- Select "Update" in the "Add or Update Record" field
- Select the existing record in the "Select Record" field
- Click [Define Record Data Elements]
- Click [New Row]
- In the "Element Name" field, enter a description of a math function to perform using the numerical fields stated in the set up fields in the file.
- For this test, "Add fields FieldA, FieldB subtract FieldC" is entered
- Tab over to the "SQL Generated Data" field
- Add a math function to accomplish the result
- For this example, the following expression would be used:
- MATH(MATH(p.FIELDA,p.FIELDB,'+'),p.FIELDC,'-')
- Click [New Row] again to add another math function
- In the "Element Name" field, enter a description of another math function to perform using the numerical fields stated in the set up fields in the file.
- For this test, "Multiply fields FieldA and FieldB divide by FieldC" is entered
- Tab over to the "SQL Generated Data" field
- Add a math function to accomplish the result
- For this example, the following expression would be used.
- MATH(MATH(p.FIELDA,p.FIELDB,'*'),p.FIELDC,'/')
- Click [Save] to save the changes
- Click [File Record]
- Click back to the "State Form Definition" section
- Click [File Form]
- Validate the definition files successfully
- Open form "State Form File Generation"
- In the "State Form" field, select [TestFile]
- Select the "Compile" button in the "File Generations Options" field
- Click [Process]
- Click [OK] at the "Compile Complete" message
- Select the "Dump File" button in the "File Generations Options" field
- Click [Process]
- The "RADplus_SF_File_Dump" report will display
- Locate the record row for [TestClient]
- Validate the resulting value for the math calculation set up in step 2g is correct.
- For this test (10+20-5), the expected result would be "15"
- Validate the resulting value for the math calculation set up in step 2h is correct.
- For this test (10 x 20 divided by 5), the result would be "40"
Scenario 2: State Form Definition -Validate 'Automatically Purge Posted Compiles' with "Days To Save Compile Data" set to "0"
Specific Setup:
- Have a state form definition file created [SFfile] in form "State Form Definition" that has not yet been complied in form "State Form File Definition"
Steps
- Open the 'State Form Definition' form
- Select 'Existing' in the 'New or Existing' field
- Select the [SFfile]
- Scroll to the bottom of the form
- Set the 'Days to Save Compile Data' field to "0".
- Navigate to the 'Definition Options' field. Click the help message icon next to field label.
- Validate message includes information regarding the "Automatically Purge Posted Compiles" selection that states, If selected, compiles automatically deleted based on the selection in the 'Days To Save Compile Data' field value will "also" delete Posted files (where a file has been generated on server)
- Leave the 'Automatically Purge Posted Compiles' selection, not selected
- File the definition
- Open the 'State Form File Generation' form
- Select the [SFfile]
- Select "Compile" in the "File Generations Options" field
- Click [Process] to create the compile. [CompileA]
- Validate "Process Complete" is displayed
- Click to [Dump the File] in the "File Generations Options" field
- Click [Process].
- Validate the dump file report displays data
- Repeat step 4b to compile another file. [CompileB]
- Click the "Select File" dropdown to view the compiles
- Validate [CompileA] is not present as expected, as prompt 'Days to Save Compile Data' field was set to "0".
- Validate the new compile [CompileB], is available for selection
- Select [CompileB]
- Select "Create File on Server" in the "File Generations Options" field
- Click [Process].
- Validate "Process Complete" is displayed
- Repeat step 8b to create another compile. [CompileC]
- Click the 'Select File" dropdown to view the compiles
- Validate the new compile is present [CompileC]
- Validate [CompileB] the one created on the server is present as well as expected, since prompt 'Automatically Purge Posted Compiles' was not selected in step 3d
- Re-open the 'State Form Definition' form
- Select the [SFfile] for edit
- Navigate to the 'Definition Options' field
- This time select the 'Automatically Purge Posted Compiles' selection
- File the definition
- Return to the 'State Form File Generation' form
- Select the [SFfileA]
- Select "Compile" in the "File Generations Options" field
- Click [Process] to create another compile. [CompileD]
- Validate "Process Complete" is displayed
- Click the 'Select File" dropdown to view the compiles
- Validate the new compile is present [CompileD]
- Validate [CompileC] is not present as 'Days to Save Compile Data' field to "0".
- Validate [CompileB] the one created on the server is also not present this time, since prompt 'Automatically Purge Posted Compiles' was selected in step 5
Scenario 3: State Form Definition -Validate 'Automatically Purge Posted Compiles' with "Days To Save Compile Data" greater than "0"
Specific Setup:
- Have a state form definition file created [SFfile] in form "State Form Definition" that has not yet been complied in form "State Form File Definition"
Steps
- Open the 'State Form Definition' form
- Select 'Existing' in the 'New or Existing' field
- Select the [SFfile]
- Scroll to the bottom of the form
- Set the 'Days to Save Compile Data' field to any value greater than "0".
- Navigate to the 'Definition Options' field. Click the help message icon next to field label.
- Validate message includes information regarding the "Automatically Purge Posted Compiles" selection that states, If selected, compiles automatically deleted based on the selection in the 'Days To Save Compile Data' field value will "also" delete Posted files (where a file has been generated on server)
- Leave the 'Automatically Purge Posted Compiles' selection, not selected
- File the definition
- Open the 'State Form File Generation' form
- Select the [SFfile]
- Select "Compile" in the "File Generations Options" field [CompileA]
- Click [Process] to create the compile [CompileA]
- Validate "Process Complete" is displayed
- Click to [Dump the File] in the "File Generations Options" field
- Click [Process].
- Validate the dump file report displays data
- Repeat step 4b to compile the file again, to create another compile [CompileB]
- Click the "Select File" dropdown to view the compiles
- Validate [CompileA] is present as expected, as prompt 'Days to Save Compile Data' field was set to greater than "0".
- Validate the new compile [CompileB], is also available for selection
- Select [CompileB]
- Select "Create File on Server" in the "File Generations Options" field
- Click [Process]. Validate "Process Complete" is displayed
- Repeat step 8b to compile the file again to create another compile [CompileC]
- Click the "Select File" dropdown to view the compiles
- Validate the new compile is present [CompileC]
- Validate [CompileA] is still present
- Validate [CompileB] the one created on the server is present as well as expected, since prompt 'Automatically Purge Posted Compiles' was not selected in step 3d
- Re-open the 'State Form Definition' form
- Select the [SFfile] for edit
- Navigate to the 'Definition Options' field
- This time select the 'Automatically Purge Posted Compiles' selection
- File the definition
- Return to the 'State Form File Generation' form
- Select the [SFfile]
- Select "Compile" in the "File Generations Options" field
- Click [Process] to create the new compile. [CompileD]
- Validate "Process Complete" is displayed
- Click the "Select File" dropdown to view the compiles
- Validate the new compile is present [CompileD]
- Validate [CompileA], [CompileB] and [CompileC] are also still present, since the 'Days to Save Compile Data' field is set greater than "0".
|
Topics
• NX
• State Form Tools
|