Why is only the last function called if the function name is the same in UFT 12.02?

I am using UFT 12.02. In the function library, I have a ReportEvent function (Status, TestStep, ExpectedResult, ActualResult, OptionalLink) and another function with the same name as ReportEvent (TestStep, ExpectedResult, ActualResult).

when I call the ReportEvent function in my script, it calls the function specified in the highest LOC of two, i.e. the last to be recorded.

this does not stop my work, but my curiosity has become better than me, and I thought that maybe you can help.

+2
source share
1 answer

- vbscript, :

  • , .
  • , ExecuteFile, . ...
  • , . ...
  • , LoadFunctionLibrary, . ...
  • ,

, , - , , . - ReportEvent (Status, TestStep, ExpectedResult, ActualResult, OptionalLink) LOC-50 ReportEvent (TestStep, ExpectedResult, ActualResult). LOC -105

LOC-105.

+3

Source: https://habr.com/ru/post/1680146/


All Articles