Forum Discussion

moorerad's avatar
moorerad
New Contributor
8 years ago

Change FilePath folder for all TestedApps in project

Hi all

 

I have a project for each exe that we test. Over 200 exes!!

 

Is there an easy way to set the FilePath for all TestedApp globally rather than having to do the below in each project's script?

 

TestedApps.claddr.Params.ActiveParams.FilePath:= ProjectSuite.Variables.ExeDir;

 

Thanks

 

Richard

4 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    If I clearly understood your idea, you can iterate through all tested apps:

     

    #Python implementation:
    
    def set_path_to_tested_apps(target_path):
    
        for i in range(TestedApps.Count):
            TestedApps.Items[i].Path = target_path

     

  • moorerad's avatar
    moorerad
    New Contributor

    Hi baxatob 

    Unfortunately that only loops through the testedapps in a single project. Or that's how I understand it.

     

    Each of our exes have their own project under the project suit so I need to be able to do it from the project suit level for all projects

     

     

    • baxatob's avatar
      baxatob
      Community Hero

      Why you can't store all of your .exe files (or its shortcuts) in the one place?

      • moorerad's avatar
        moorerad
        New Contributor

        I have now changed it so that they are

         

        Thanks