Read About Type Mismatch Error In Qtp In Detail.

Asked By 30 points N/A Posted on -
qa-featured

Hi everyone,

I wish to ask about type mismatch error in qtp in brief. If anybody is having any clue regarding this, then please explain it in reply.

Thank you in advance.

SHARE
Answered By 0 points N/A #302038

Read About Type Mismatch Error In Qtp In Detail.

qa-featured

I feel that’s rather meant to be StrComp (along with an o)?

And, you know that it’s a function so you must treat it as below:

If StrComp(s1, s2) = 0 then

Alternatively, “type mismatch” is QTPs poor method of telling youthat “the function is not known.”So, I think you meant an array variable dereference, and that the variable that you specified is empty, thus it is not equivalent to an array, and so cannot be dereferenced as an array.

Answered By 590495 points N/A #303128

Read About Type Mismatch Error In Qtp In Detail.

qa-featured

When you are coding or programming something, when the command or statement you entered is spelled incorrectly, that’s when you receive a “type mismatch” error. Since programming languages are by line number, the line number where the error was caught is shown in the error message that’s why it is easy to find it.

When you receive a “type mismatch” error on your program, go to the line number indicated in the error message and check that line word per word making sure each statement is typed correctly. You should also check every punctuation mark used on values and variables. Another error may also appear, the “syntax error,” which can be triggered when the command, statement, or function is used incorrectly.

Related Questions