The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
Rastek
Member


Reged: 12/27/10
Posts: 269
Loc: Istanbul
Object Required error in vbs file
      #719773 - 11/14/12 02:28 AM

Hi,

I want run a DP script in vbs instead of QTP, in order to close Security warning. I can close Security Scripts withing QTP (not via recovery but just a function)

I do not know how can I use DOM objects inside a vbs instead of a QTP file.

I want to run same code outside the QTP in a vbs file.
When I run the code below I got the error
Line : 3
Char :1
Error:Object Required 'Description`

try = ".*"
Dim myDialog
Set myDialog=Description.Create
myDialog("micclass").value="Dialog"

Set Button=Description.Create
Button("micclass").value="WinButton"
Button("text")= try&"Yes"

Set NButton=myDialog("regexpwndtitle:=Security .*").ChildObjects(Button)
NButton(0).click

--------------------
I look serious because I am serious.


Post Extras: Print Post   Remind Me!   Notify Moderator  
bklabel1
Member


Reged: 09/19/12
Posts: 56
Loc: Kew Gardens, NY USA
Re: Object Required error in vbs file [Re: Rastek]
      #719873 - 11/15/12 09:57 AM

Are you putting this code in a .vbs file and then finding that it does not understand the QTP syntax? I cannot tell what what your question is.

Post Extras: Print Post   Remind Me!   Notify Moderator  
MilesToGoBeforeISleep
Super Member


Reged: 09/15/10
Posts: 1887
Re: Object Required error in vbs file [Re: bklabel1]
      #719919 - 11/23/12 05:10 AM

U cannot use DP in VBS without QTP, if you mention the code in vbs you need to include or call this from QTP. What you can do is, if you know where the security warnings occur you can call this vbs function. Other than this you cannot really invoke this without QTP.

I am not sure with your question, security warnings are from application?, do you know the sequence or step when this pops up?

--------------------
Thanks,
Ganns!!!
<< Why are you so obsessed at finding bugs >>


Post Extras: Print Post   Remind Me!   Notify Moderator  
Rastek
Member


Reged: 12/27/10
Posts: 269
Loc: Istanbul
Re: Object Required error in vbs file [Re: MilesToGoBeforeISleep]
      #719923 - 11/24/12 07:41 AM

Hi,
I know QTP is a single thread application and it got struck in the scenario of a modal dialog window,

I wonder how I can work this kind of a script as an independet vb script.

Can somebody provide some example code fot this ?

Thanks.

--------------------
I look serious because I am serious.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jonty
Super Member


Reged: 01/17/07
Posts: 1267
Loc: India
Re: Object Required error in vbs file [Re: Rastek]
      #719926 - 11/28/12 05:49 AM

The above lines of code wouldnt help if running outside QTP

Refer the DOM portal here :

http://msdn.microsoft.com/en-us/library/ms531073.aspx

Identify your application object hierarchy and use the above information as guideline.

--------------------
Cheers
Jonty..
-- Here to Learn and share ---


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 67 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3495

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5