2

I am using testComplete for a web-based automated test suite.

This is the first time for me to use testComplete, I put all of my javaScript files into one large file. I am wondering if it is possible to refactor this large file into smaller ones for easier maintenance?

Thanks

1

It is definitely possible.

Please take a look at the following images I stole from the internet.

  • You can create more script files by adding new items under Advanced folder. Create as many as you needed. The option "Advanced" is actually partially cover in the next picture. enter image description here
  • Give the files you created with meaningful names.
  • Import and export functions as needed by right click on script files. You will see an interface similar to the following picture. enter image description here
  • From there, follow the instructions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.