Forum Discussion

kso's avatar
kso
Occasional Contributor
14 years ago

Unit Testing of jscript library

Hi,



How to configure Unit Testing  in order to test jscript libraries.

I have several Unit libraries written in Jscript , and i would like to add TCUnitTest  item.

The problem is that you must specify a process.

In my case, i have no process.



regards,

 

3 Replies


  • Hi Karim,





    TestComplete uses Microsoft JScript engine, actually. It means that you can add your JScript library files to your TestComplete project and run them directly from your TestComplete scripts, like your usual script routines.


  • kso's avatar
    kso
    Occasional Contributor
    Hi  Allen,



    Thank you for your response.

    Perhaps, I'm not clear, but my question is How to configure TestComplete Unit Testing to unit test a TC Project made simply of jscript.



    I have TC projects made of jscript functions used as library which are referenced in other projects and included using USEUNIT.



    What i want to do is to add a unit test item on those "library" projects so that i can unit test the featured offered by them.

    But the process of configuring a unit test forces us to indicate the path of an executable.

    In my case, i have no exe. I just have script files.



    Regards,

  • Hi Karim,





    Thank you for clarifying your request. TestComplete unit tests are not supposed to be used this way and therefore this cannot be achieved.