Use of Settings.aiis file

10 posts, 0 answers
  1. ching ping
    ching ping avatar
    3 posts
    Member since:
    Sep 2010

    Posted 08 Dec 2010 Link to this post

    Hi Telerik team,

    I would like to know more on this Settings.aiis file. From what i understand, it's a file that save all the properties. There is a section <ExcludedFiles> in settings.aiis file. What is it use for?
     
    Recently, i encountered a compilation error with 'Cannot find reference' to my test which contains coded steps(e.g. MyTest1.aii) when i was trying to build my solution file before running my UI tests with my build script using Visual Studio Command Prompt. The problem is solved when i tried to removed my test(MyTest1.aii) from

    <ExcludedFiles>
        <Item Type="System.String">SampleTest2.aii</Item>
        <Item Type="System.String">MyTest1.aii</Item>
    </ExcludedFiles>

    of my Settings.aiis file. 

    I would like to find out why my compilation error could be solved by this.

    Thanks
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 10 Dec 2010 Link to this post

    Hello ching,

    The Settings.aiis is the place we store the project specific settings. The ExcludedFiles is the list of tests that are excluded from the project.

    Files that are out of the project shouldn't really affect the compilation result. We will need to check this and see what's going on. I'll make sure we have a bug logged about this if we can confirm the issue and look into resolving it for a future next version of the product.

    Your time in sharing feedback about the product is highly appreciated!

    Kind regards,
    Konstantin Petkov
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. STEVEN
    STEVEN avatar
    37 posts
    Member since:
    Oct 2010

    Posted 10 Dec 2010 Link to this post

    2 observations:
    - tests with coded steps need to be listed in the <ExcludedFiles> section in order for the project to compile without errors.
    - these tests with coded steps listed in the <ExcludedFiles> section actually run

  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 Dec 2010 Link to this post

    Hello STEVEN,

    Yes, this is a known bug in the product. We are hoping to have this fixed in our SP1 release scheduled for next week.

    Kind regards,
    Cody
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  5. ching ping
    ching ping avatar
    3 posts
    Member since:
    Sep 2010

    Posted 12 Dec 2010 Link to this post

    Hi,

    Just to correct on Steven's post:

    2 observations:
    - tests with coded steps must be excluded from the <ExcludedFiles> section in order for the project to compile without errors.
    - these tests with coded steps listed in the <ExcludedFiles> section actually run



  6. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 13 Dec 2010 Link to this post

    Hi ching ping,

    The bug we currently have is if you use the QA Edition to exclude a test (the .aii file), we fail to also exclude the matching code behind file (.cs/.vb) file. As a result of this error you usually get a compilation error in the QA edition when you attempt to execute any other test, and it complains about the code in the code behind file for the test you just excluded. Once you add the code behind file to the <ExcludedFiles> section then it is supposed to also be excluded during the compile. If it isn't that's a bug in the product.

    Are you trying to say that even though the .cs/.vb file is included in the <ExcludedFiles> section it is still getting compiled resulting in a compile error? One thing to be aware of is the relative path (relative to the test projects root folder) must be included. This if the code behind file is at "CRMTests/Phase1/TC101/cs" relative to the root of the test project, that exact psth must be used in the <ExcludedFiles> section.

    This thread was posted in the Dev edition forum, thus it doesn't really apply. The <ExcludedFiles> section contained in settings.aiis is not used in Visual Studio.

    Kind regards,
    Cody
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  7. ching ping
    ching ping avatar
    3 posts
    Member since:
    Sep 2010

    Posted 14 Dec 2010 Link to this post

    Hi,

    Just to clarify, we're using Dev edition and not QA edition. I don't really understand on your reply. I'll give an example here on what we faced to make things clear.


    I have a test with coded steps named 'MyTest1.aii'. When i try to compile my solution file using MsBuild, i ran into compilation errors with 'Cannot find reference' for 'MyTest1'. I noticed that 'MyTest1' is actually included in <ExcludedFiles> section of my Settings.aiis file.

    <ExcludedFiles>
        <Item Type="System.String">MyTest1.aii</Item>
    </ExcludedFiles>


    When i tried to remove 'MyTest1.aii' from <ExcludedFiles> section of my Settings.aiis file, i'm able to compile my solution file with MsBuild without any compilation error.

    <ExcludedFiles>
    </ExcludedFiles>


    I attached my build script for your reference.



  8. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 20 Dec 2010 Link to this post

    Hello ching ping,

    The feedback you are describing is expected. Here is what is going on:

    • You tell the solution to build (or otherwise begin compilation)
    • The application sees a coded file named the same as your "excluded" test, it is added to the queue to compile
    • The compiler looks for what is referenced (your excluded test)
    • The compiler cannot find the test, since it is excluded, and returns an error saying it is not referenced correctly

    Please let us know if you manually added the test to the excluded list, or if you did this using the GUI. If you manually added the item to the exclusions, you will need to add the .cs file(s) for the test to the excluded list that you are referencing before the test can compile again.

    The issue Cody was discussing was for QA edition. In QA edition only, if you exclude a test that has a code behind step it does not exclude the .cs file associated as well (so they will see this error at times). Since you are using Dev edition you should not need to worry about this as we have not been able to reproduce this within Developer edition. You should only be seeing this if the item was manually added to the exclusion list but not the .cs file as well.

    Greetings,
    Keaegan
    the Telerik team

    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  9. Chelsea
    Chelsea avatar
    34 posts
    Member since:
    Nov 2015

    Posted 01 Dec 2015 in reply to Konstantin Petkov Link to this post

    Hi Team,

    I also have a question about the Settings.aiis file. Where does it come from/how do you get it? I tried to connect Telerik Test Studio with TFS to open a project and when I click on the Team Project, it says that the Settings.aiis file is missing.

    Thanks!
  10. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 01 Dec 2015 Link to this post

    Hello Chelsea,

    Test Studio automatically creates a settings.aiis file whenever you create a new test project. This file holds all of your project settings for the entire project. Try creating a new Test Studio test project in the folder that Visual Studio is saying is missing the settings.aiis file.

    Regards,
    Cody
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!