7

I have a third party check box control in my AUT that QTP does not recognize. Is there a way to have QTP treat it as a regular .NET check box?

6

In the HP > QTP > Dat directory there are XML configuration files for each of the plugins loaded into QTP. The .NET file is called SwfConfig.xml. In this file, you can tell QTP how to interact with the control types it sees. In this case, you can define the following:

<Control Type="ControlTypeName" MappedTo="SwfCheckBox"></Control>

Note that this will not work in all cases, but with lightweight similar controls, it is worth a try before writing your own implementation.

  • with the above answer... you have a option to create a Virtual object for that!It will be helpful! Thanks! – Nidhi Chauhan Dec 1 '15 at 19:43
  • @nidhi I made this into a comment, since you can't comment yet. When you get 50 rep you can though... thanks for sharing! :) – corsiKa Dec 1 '15 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.