Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Using " Set Object" throws Error

$
0
0

Hi All,

 

I am trying to automate Windows based application, already developed 200+ test cases..

 

We are tring to declare variable as object in top of the script as automation practice (just like we use to do it in UFT) ..

 

For eg: 

 

'Declare Public objects
Set objTradeTicket = Aliases.wndTradeDetails
Set objTradeTable = Aliases.javaw.starterMystageIndmsQaApplication.scene.primaryTabPane.tradesTable
Set Yes_Btn = Aliases.javaw.heavyweightdialog1ConfirmClose.scene.buttonbar.buttonYes
Set objProductTab = Aliases.javaw.starterMystageIndmsQaApplication.scene.primaryTabPane.filterByProductTabs

 

 

Here the problem is i am just declaring the variable object on top of the script and these objects will be used in the script later on after few operations, once i execute the code Test complete immidiately throws ERROR(Obj does not exist)..

 

Can anyone please suggest solution on this please?

 

Thanks,

Kavan Shah

 


Viewing all articles
Browse latest Browse all 21061

Trending Articles