Forum Discussion

aryansharma32's avatar
aryansharma32
New Contributor
11 years ago

Jquery scripts in test complete

Hi,



I want to use Jquery scripts to create testing scripts using test complete.

Can you please provide information how can i use the same.



Thanks

3 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Aryan,


     


    JQuery is mostly used to create a client side of web pages. I'm not sure if it's possible to create a reliable testing framework based on this library.


    Could you please describe your task in detail? Maybe somebody could give you some advice.


     

  • Hi,



    I am using javascript currently for generating scripts in test complete but in some places it's difficult to write the script using javascript whereas it may be easier to execute using jquery. that's thereason i want to know how to add jquery along with my javascripts code.



    Thanks.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Aryan,



    Try to change jquery's file extension from .js to .sj and add it as already existing script unit to your TestComplete project. (Don't forget to reference jquery file from other script units using USEUNIT directive.)