Forum Discussion

phil94gullick's avatar
phil94gullick
New Contributor
13 years ago

Calling numerous small scripts to create one big script

Hi all,



I am currently in the process of getting to grips with TestComplete, the problem I face is:

My company want numerous small test scripts that tests one thing, but also want a big test that calls each small test.



Is there a way to do with without copy and pasting the whole code?



I tried using 'USEUNIT but it didn't work.



So to picture this for you I have(for example) two folders:

Small Scripts:

- Test A

- Test B

- Test C

- Test D

Big Script:

Call + Run Test A

Call + Run Test B

Call + Run Test C

Call + Run Test D



Preferably one liners for readability, and this way I can control what runs when, and no duplicate code.



Cheers!



Apologies for the simplicity of this.

2 Replies

  • vajindarladdad's avatar
    vajindarladdad
    Frequent Contributor
    Hi Phillip,



    You said , The USEUNIT did not work for you.

    Just a small question , Did you add the .svb file to the project ?

    Please let us know , if you need help about adding .svb file in project.





    Coming to your another question:



    You can create functions or Sub-routines which you can call repeatedly .



    Here you have to arrange the function and its parameters smartly to minimize the your efforts.



    Please visit the link to get help about USEUNIT:

    http://support.smartbear.com/viewarticle/8921/

    http://support.smartbear.com/viewarticle/31618/



    I hope this has been of some help.
  • Thanks for the reply,



    Sorry but I have not read anything about an .SVB file, just making references to the units.