Set the value of a field
 

 

Equivalence classes

Values combo box

Session log

 

Detailed Test Cases

Case #
Description
Steps
Expected Outcome
Actual Outcome
1
set the value of the field
  • Select File menu -> Open class
  • Enter 'java.lang.Integer'
  • Press OK button
  • Create New Test Data Item int with value 5 and name tempInt
  • Instantiate 'java.lang.Integer' with tempInt and name testInt
  • Change the value of tempInt in the Object Pool to 10
  • Click on the private tab in fields panel
  • Select tempInt from the Values combo box next to the field "value"
tempInt and testInt appear in the Object Pool under Test Data Items. "Value" was originally 5 and is now set to 10. The session log displays a message in the form of "[HH:MM] Set Field Value - value to tempInt"  
2
all valid values show up in combo box
  • Select File menu -> Open Class
  • Enter 'java.lang.Integer'
  • Press OK button
  • Create New Test Data Item int with value 5 and name tempInt
  • Instantiate 'java.lang.Integer' with tempInt and name testInt
  • Click on the private tab in fields panel
  • Click on the field named value
  • Click on the Values combo box next to the field "value" to drop it down
The combo box should display values tempInt, testInt, and value. Value should be last and it should be selected by default at this point.

 

Author: Phillip Hansen
Date: 3/10/01