Tips of QTP

Tarun Lalwani
Veteran

What is micClass

Reged: 07/21/05
Posts: 13870
  Re: What is micclass? [Re: Champion]
      #390419 - 06/19/07 01:12 AM   Edit     Reply     Quote     Quick Reply   

When you saw Browser("XXX") that mean that XXX has a micclass:=Browser. Mic class is the classname/type of test object which is browser in your case. What you saw earlier is used to create a dummy parameter.

In case you know there will be a single browser only that mean you dont need to provide anything to recognize it. But DP does not allow passing a blank parameter. So the below statments are invalid

Browser("").Close
Browser().Close

Now since we dont have any property we put one which is already implied.

Browser("micclass:=Browser").Close

I hope that would answer your query.

原文地址:https://www.cnblogs.com/Apple010/p/2423342.html