Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
10 years ago

Log.SaveResultsAs()

Hello,

 

I have a project suite organized like this :

 

ProjectSuite

  - ProjectA

    - Folder1

     - ... about 20 scripts that are all one scenario

    - Folder2

     - ... about 20 scripts that are all one scenario

 

  - ProjectB

    - Folder3

     - ... about 5 scripts that are all one scenario

    - Folder4

     - ... about 5 scripts that are all one scenario

 

I need to log 4 .mht files that are each the results of one folder.

 

But... When I modify the last parameter ( Scope) of the Log.SaveResultsAs() method it really don't give me satisfaction.

 

The best result is :

first .mht with Folder1 results

second .mht with Folder1 AND Folder2 results

... etc...

last .mht with all of the project suite results.

 

could someone help ?

 

does my project suite not organized as it should be ?

 

thank you,

 

Mehdi

 

  • The quickest way I see to do it is to have a main script that calls the contents of a folder.  Then just run the main scripts and they would each have a log.  This would work for me because we only use folders for organizing scripts for the user.  We don't run them in the folder order.  

     

    For you it would be something like this:

     

    Project Suite

    Project A

      Folder 1

      Folder 2

      MainScript1 (calls all scripts in Folder 1)

      MainScript2 (calls all scripts in Folder 2)

     

  • If it were exactly the way you want it, what would the log show?

    • m_essaid's avatar
      m_essaid
      Valued Contributor

      Hi Marsha,

       

      I wish I could have 4 different logs, each one contains logs for one folder...

      • Marsha_R's avatar
        Marsha_R
        Moderator

        The quickest way I see to do it is to have a main script that calls the contents of a folder.  Then just run the main scripts and they would each have a log.  This would work for me because we only use folders for organizing scripts for the user.  We don't run them in the folder order.  

         

        For you it would be something like this:

         

        Project Suite

        Project A

          Folder 1

          Folder 2

          MainScript1 (calls all scripts in Folder 1)

          MainScript2 (calls all scripts in Folder 2)