Reusable actions doesn\'t run,If called from Action
Facing problem while running actions from other actions,please help!
I am organizing my script this way...
Script A(contains) - MasterAction1 which has call to MainAction1
ScriptB(contains) - MainAction1
MainAction1 (contains) =Call statements to Action2, Action3
Two .VBSFiles - Common functions.vbs , Object Repository.vbs
1.MasterAction1 is non reusable,while all other actions are reusable.
2.Now I have added both .vbs files to both the scripts (using files> settings)
Objects.vbs contains few objects (ex>pages, using set object method) and variables for object's unique properties (ex:txt_username ="html id:= name101")...which will now be used in scripts as parameters to statements like-
1.If I run any actions of any script independently/individually ....They run perfect!
2.If I run thru my specified heirarchy(above)...QTP gives following error message.
"Object doesn't support this property/method"...on any of such line
I am unable to understand how come the objects support everything when run independently , while don't support if Actions are called one after another from within another actions.
Problem seems regarding some coordination and use of .vbs file.
Anyone please help! put thoughts and validate my approach??
Thanks in Advance,