Inspect Returned Value
 

 

Equivalence Classes

test data item

public fields

protected fields

private fields

package local fields

 

Detailed Test Cases

Case # Description Steps Expected Outcome Actual Outcome
  Preparation (opening a class, instantiating it, invoking a method that returns a non-primitive object to use for inspection). Note - this prepatory step needs to have been done before any other test cases are carried out
  • Make sure TestClass33 is in the same directory as ETA.jar
  • Select File | Open Class...
  • Type TestClass33
  • Press OK
  • Select Test | Instantiate TestClass33
  • Press OK
  • invoke the public method getCopy

an instance of TestClass33 is created for the user to test

a returned object called TestCase33.getCopy appears in Returned Objects tab of Object Pool

 
  inspect button present for non-primitive test data items
  • click on Returned Object tab of object pool
  • click on inspect button of testClass33

object inspector window shows up

'inspect' event is recorded in session log

 
  retrieving values of public fields
  • click on Returned Object tab of object pool
  • click on inspect button of testClass33
  • click on public tab
  • click on pubInt field name

object inspector window shows up

'inspect' event is recorded in session log

new test data item named pubInt shows up in test data items tab of object pool

value in combo box should have pubInt selected

 
  retrieving values of protected fields
  • click on Returned Object tab of object pool
  • click on inspect button of testClass33
  • click on protected tab
  • click on protInt field name

object inspector window shows up

'inspect' event is recorded in session log

new test data item named protInt shows up in test data items tab of object pool

value in combo box should have protInt selected

 
  retrieving values of private fields
  • click on Returned Object tab of object pool
  • click on inspect button of testClass33
  • click on private tab
  • click on privInt field name

object inspector window shows up

'inspect' event is recorded in session log

new test data item named privInt shows up in test data items tab of object pool

value in combo box should have privInt selected

 
  retrieving values of package local fields
  • click on Test Data items tab of object pool
  • click on inspect button of testClass33
  • click on package local tab
  • click on pacLocInt field name

object inspector window shows up

'inspect' event is recorded in session log

new test data item named pacLocInt shows up in test data items tab of object pool

value in combo box should have pacLocInt selected

 
  close button
  • click on Test Data Items tab of object pool
  • click on inspect button of testClass3
  • click on close button

object inspector shows up

'inspect' event is recorded in session log

'end inspect' event is recorded in session log

 

 


last modified Mar 9 2001 by Michael Hebron