Forum Discussion

alex_jones's avatar
alex_jones
Occasional Contributor
10 years ago
Solved

Automated testing of Shortcuts


Hello,



I have managed to get test complete to open my application and login successfully. I would now like to explore the best way of testing the shortcuts that my application provides.



I've been using a Data Driven loop which uses the shortcuts I would like to test supplied by a CSV file. I use a "Keys" operation which reads in my variable.



Here is a sample from my CSV file:



shortcut,dialog

[Alt]unsu, New Data Process Wizard



Most shortcuts will spawn a dialog, I have provided the title of the dialog in the dialog column.



Once the dialog has been launched I would like to log that it has worked and then return the application to before the dialog is show.



What is the best way to test my applications shortcuts.

 



Thanks,



Alex


  • You can log the result of your tests with this:

    http://support.smartbear.com/viewarticle/55472/?aliaspath=/viewarticle



    For resetting the application to before the dialog was opened, you can either have TestComplete back out of the dialog box (is there a Cancel button to click?) or you can have TestComplete close everything (is there an X button to click?).  Take this opportunity to get rid of the dialog box the way a user would and now you have another process tested.

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3
    You can log the result of your tests with this:

    http://support.smartbear.com/viewarticle/55472/?aliaspath=/viewarticle



    For resetting the application to before the dialog was opened, you can either have TestComplete back out of the dialog box (is there a Cancel button to click?) or you can have TestComplete close everything (is there an X button to click?).  Take this opportunity to get rid of the dialog box the way a user would and now you have another process tested.