Ask a Question

Application widget enabled or disabled

shilpi_agarwal
Contributor

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-

 

custadd.jpg

 

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 3
baxatob
Community Hero

Re: Application widget enabled or disabled

Check your button's property "Enabled" - it should be "True" or "False".

More detailed info here.

shilpi_agarwal
Contributor

Re: Application widget enabled or disabled

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
Community Hero

Re: Application widget enabled or disabled

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

cancel
Showing results for 
Search instead for 
Did you mean: