Forum Discussion

jloyzagawh's avatar
jloyzagawh
Contributor
9 years ago

I have function library from QTP can I call some of those functions i n testcomplete?

Can I add my QTP functions to my testcomplete library and call them via testcomplete?

6 Replies

  • Logically both use VBscript, so you can use it only if you have not used QTP Object anywhere in the code.

    If  you have used QTP Object, then those part you will have to replace it with testcomplete objects.

     

    Cheers..

    Kavan

    • jloyzagawh's avatar
      jloyzagawh
      Contributor

      is there a "functions" library where I can put them?

      • kavansays's avatar
        kavansays
        Contributor

        TO use function library just follow below steps..

         

        * Create you function lib as .vbs

        * Export these lib to the script folder(of the project) as existing script.

        * use these lib in your actual scripts by simply adding one line on top of the script as "USEUNIT <Libname>"

        * Now you can access all the functions written in that lib file to that script.

         

         

        ->>>>>> In below image sprint 10 is the project name and General is the Lib files..

         

        file.jpg

         

        Cheers..

        Kavan Shah

  • NisHera's avatar
    NisHera
    Valued Contributor

    If you have done entirely descriptive programming
    may be possible to use a very small number of codes.
    But in TC scripting it's heavyly used TC key words and fucntions.
    VB is kind of glue that wrap those up.
    So Im afraid whether your old libraries are usefull