Forum Discussion

loricotton's avatar
loricotton
Contributor
2 years ago
Solved

How do I include within the same project suite

I have a project suite that consists of the following projects

logon -

create something -

close browser 

different logon

Validate something

close browser.

 

the close browser project is an add existing item

How do I include it twice within the same project suite?

  • Marsha_R's avatar
    Marsha_R
    2 years ago

    >This is a government application that used for creating missions. I need to be able to create multiple missions. code is the same except for the external data file.

    This is a common usage of tests within a project. See the example here. I would set your tests up like the "webstore" example in the first screenshot. 

    https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/project-suites.html

     

     

    >I need to be able to use different user roles so I need to close the browser in between logins.

    That's not a problem. I see that in your test list.

     

     

    >I don't want the browser to be included in the test project.

    Do you mean that you don't want the browser to be hard coded in the test?

    If you want to run the same dataset on each browser, then look at setting up cross-browser testing. This will be the easiest way.

    https://support.smartbear.com/testcomplete/docs/app-testing/web/general/cross-browser/creating.html

    If you want to run on different browsers depending on what the data is, then I would include the browser name in your data. You can then use that variable for opening and closing the browser.

     

     

     

     

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    I don't believe you can have two items with the same name in a project or a project suite. I think what you would need to do is use your list in the Execution Plan as the order to run the tests.

     

    I'm looking at your list and those items look to me like they would be separate tests, but not separate projects. What advantage did you get by organizing them this way? 

    • loricotton's avatar
      loricotton
      Contributor
      This is a government application that used for creating missions. I need to be able to create multiple missions. code is the same except for the external data file. I need to be able to use different user roles so I need to close the browser in between logins. I don't want the browser to be included in the test project. I am going for extreme reusable and modulization.
      Lori
      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        >This is a government application that used for creating missions. I need to be able to create multiple missions. code is the same except for the external data file.

        This is a common usage of tests within a project. See the example here. I would set your tests up like the "webstore" example in the first screenshot. 

        https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/project-suites.html

         

         

        >I need to be able to use different user roles so I need to close the browser in between logins.

        That's not a problem. I see that in your test list.

         

         

        >I don't want the browser to be included in the test project.

        Do you mean that you don't want the browser to be hard coded in the test?

        If you want to run the same dataset on each browser, then look at setting up cross-browser testing. This will be the easiest way.

        https://support.smartbear.com/testcomplete/docs/app-testing/web/general/cross-browser/creating.html

        If you want to run on different browsers depending on what the data is, then I would include the browser name in your data. You can then use that variable for opening and closing the browser.