Forum Discussion

sastowe's avatar
sastowe
Super Contributor
13 years ago

project or suite

Is there a way to tell in script if the whole suite was run or just the project? Thanks



S

2 Replies

  • joffre's avatar
    joffre
    Regular Contributor
    Hello Stephanie Stowe.



    I'm not sure if I understood what you are trying to do, but let's see.



    When you double click your ProjectSuite on Project Explorer, the existing Projects will be shown on your Workspace. There you may specify wich Projects you want to run.



    Hope it helps.







    Best regards,

    Joffre Mota
  • Hi Stephanie.



    From a script point of view, if you want to find out if you are running a suite or a single project, I would suggest to use CommandLine arguments feature.



    I guess you might be aware of it, but if it is not the case, you can take a look at this post : http://smartbear.com/forums/f74/t78713/using-command-line.aspx



    I
     tried this here. While running a script with TestExecute, you should look for "/project: YourProjectName" command line argument. If it is missing, then you are running a suite. Otherwise, you got the name of your project.



    Unfortunately, this will not work within TestComplete. In this case, I can't see anyway to find out what item is running. Maybe using TestComplete through COM could help, but that's only a guess.



    Regards, 



    Guillaume.