Forum Discussion

shilpi_agarwal's avatar
shilpi_agarwal
Contributor
8 years ago

Application widget enabled or disabled

How to check whether the widget of application is enabled or disabled in test script?

 

 

Below is Customer add screen-

 

 

I need to show in my test script that OK and Cancel button are enabled and rest are disabled. So  What should be inside the excel file to test this scenerio also?

 

 

Please suggest.

3 Replies

    • shilpi_agarwal's avatar
      shilpi_agarwal
      Contributor

      In Script I am using following methods to check enable and disable the buttons.

      Call aqObject.CheckProperty(Aliases.prowin.wndProMainWin2.ProClientWin.ProFrame.ProFrame.btnAdd, "Enabled", cmpEqual, False)
      Call aqObject.CheckProperty(Aliases.prowin.wndProMainWin2.ProClientWin.ProFrame.ProFrame.btnUpdate, "Enabled", cmpEqual, False)
      Call aqObject.CheckProperty(Aliases.prowin.wndProMainWin2.ProClientWin.ProFrame.ProFrame.btnDelete, "Enabled", cmpEqual, False)
      Call aqObject.CheckProperty(Aliases.prowin.wndProMainWin2.ProClientWin.ProFrame.ProFrame.btnOK, "Enabled", cmpEqual, True)

      But I am using excel file to store test data so What test data should be included in excel files for enable and disable the buttons?

      or there would be no test data in excel file for this scenerio?

       

       

       

       

      • baxatob's avatar
        baxatob
        Community Hero

        You can use True and False values in your excel file.