Forum Discussion

culisse's avatar
culisse
Contributor
14 years ago

Can TestComplete ask for user input during execution?

Hi,

We have several environments for testing our web application.  We also have TestExecute licenses where I'd like to share my scripts with the developers.  Since TestExecute doesn't allow you to select/de-select tests in the Project Suite like in TestComplete, is there a way I can create a popup form/message (Combo box or Text Field) to have the user input which environment they'd like to run against at the beginning of the Run.  I'd then use this input to set the correct environment variables for the script.  Thanks!

Chris
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Chris,



    You can consider either User Forms (se relevant TestComplete help topic) or some configuration file processed before test start.

    Also (some?) scripting languages support simple input forms like InputBox() function in VBScript or BuiltIn.InputBox() function provided by TC.

    From the conceptual point of view, configuration file (or custom parameters of TestComplete command line) seems to me the best option as it makes it possible to execute tests unattended, but you might consider UserForms better fit your requirements.
  • Thanks for your quick reply.  I'm going to check those options out.