Forum Discussion

joe_2's avatar
joe_2
Contributor
12 years ago

User feedback during keyword test

Ok, looked at the first 10 pages and didn't see anything that looked relevant to my question.



I'm trying to test a windows based program that manipulates images.

For many of the manipulations, there's no property I can check, and no standard image I can test with to compare the results to...  We're capturing images and doing stuff like inversion, rotation, cropping, embossing...

So I need to have the tester watch and respond whether the manipulation looked right or not.



I thought a user form might do the trick.  Just a simple question box with a yes/no response that will create a pass/fail step on the test log.

Problem is at my very rusty expertise level, creating everything needed to add the form as a menu item on the keyword test list is looking like it would take me longer than we've got for this project.   



Is there a wiki of user made controls that could be downloaded and quickly added to the project in order to add the control I need to the list?



Or even better, is there some keyword control I'm missing that will let me ask a question and get a yes/no response from the user during test execution, and log the results as a pass/fail?

3 Replies

  • Hi Joseph.



    Don't you mind if I create this function using JScript (I think that real working solution may be the best tutorial for you on how to create/implement user forms)?



    In case if you don't care about scripting language I need some clarifications on requirements:



    - is prompt requred to inform user what action he should perform?

    - is user input required (user's comments, not mandatory) in case of test step failure? These comments can be posted into additional tab of log string.



    I think that user form should contain two check boxes initially empty for Passed/Failed and one pushbutton Proceed to avoid accidental clicks. If user clicks Proceed without checking Passed or Failed, the user form should stop him (return back) and clarify what action is required.



    Developing this approach we can create a suite in TC for manual testers and beat HPQC :)



  • Hi Joseph.



    Please note that TC supports manual checkpoint functionality described here.



    My solution based on user form (simplest version):



    VBScript




    Function manualCheckpoint( psActionDescription )


      Dim userResponse


      UserForms.manualCheckpoint.actionDescription.Caption = psActionDescription


      Do


        userResponse =  UserForms.manualCheckpoint.ShowModal()


        Select Case userResponse


        Case mrYes


          Log.Checkpoint( psActionDescription & " : PASSED" )


        Case mrNo


          Log.Error( psActionDescription & " : FAILED" )


        Case Else


          Call MessageDlg( "Sorry but you can not ignore the manual checkpoint. Please select Pass or Fail.", mtWarning, mkSet( mbOk ), 0 )  


        End Select   


      Loop Until userResponse = mrYes OR userResponse = mrNo  


      manualCheckpoint = userRespone = mrYes


    End Function




    JScript




    function manualChekpoint( psActionDescription )


    {


      var userResponse;


      UserForms.manualCheckpoint.actionDescription.Caption = psActionDescription;


      do


      {


        userResponse = UserForms.manualCheckpoint.ShowModal();


        if ( userResponse == mrYes )


          Log.Checkpoint( psActionDescription + " : PASSED" );


        else if ( userResponse == mrNo )


          Log.Error( psActionDescription + " : FAILED" );


        else   


          MessageDlg( "Sorry but you can not ignore the manual checkpoint. Please select Pass or Fail.", mtWarning, mkSet( mbOk ), 0 );


      } while ( ! ( userResponse == mrYes || userResponse == mrNo ) )


      return userResponse == mrYes;


    }

     





  • Thank you, the reference to manual checkpoints is just what I was looking for.  I had a feeling that TestComplete would have what I needed.  I just didn't know what it would be called.



    No need to design a user form to do it if one already exists.

    (I will be studying that script because I need to improve my scripting skills, though.)