Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting "type mismatch error" when calling function in qtp
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

Please See if Library file has been associated with the test correctly, you can confirm this by navigating to Resources >> Associated function libraries.
Code:
call sample
Call sample()
sample()
sample
All should work in your case.

Also let me know if you are using classes?

You can associate library file with test in following ways also:
[From QTP Help]
Associate an open function library with a test:[This is from QTP Help]
1. Make sure that the test with which you want to associate the function library is open in QuickTest.
2. Create or open a function library in QuickTest. (Before continuing to the next step, make sure that the function library you want to associate with the test is the active document—you can click the function library's tab to bring it into focus.)
3. Save the function library either in your Quality Center project or in the file system.
4 In QuickTest, select File > Associate Library '<Function Library>' with '<Test>', or right-click in the in the function library and select Associate Library '<Function Library>' with '<Test>'. QuickTest associates the function library with the open test.
OR
Associate a function library with a test using the Resources pane:
1. In the Resources pane, right-click the Associated Function Libraries node in the tree and select Associate Function Library. The Open Function Library dialog box opens.
2. In the sidebar, select the location of the file, for example, File System or Quality Center Test Resources. Browse to and select a function library, and click Open.
3. The function library is associated with the test and is displayed as a node under the Associated Function Libraries node in the tree.

Thanks,
Rajeshwar
Reply


Messages In This Thread
RE: getting "type mismatch error" when calling function in qtp - by rajeshwar - 11-11-2010, 10:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 3,401 05-01-2018, 06:46 PM
Last Post: zunebuggy
  Calling a function in a Test Script from a function library anupam4j 3 6,114 06-26-2015, 12:31 AM
Last Post: babu123
  cannot use the type method on object and submit is not working jove1776 5 8,817 01-27-2015, 10:08 PM
Last Post: Parke
  How to import .xlsx file type to QTP qtped 3 6,662 03-27-2014, 01:33 PM
Last Post: Ankur
  type mismatch error in QTP QAlearningQTP 1 7,122 02-04-2014, 08:14 AM
Last Post: QAlearningQTP

Forum Jump:


Users browsing this thread: 1 Guest(s)