Forum Discussion

maurus_spescha's avatar
maurus_spescha
Occasional Contributor
11 years ago

Working with more then one project

Hi,

we will test a very large application using keyword tests (we want to have as little scripting as possible). I would like to organise tests in different projects like:

P1

P2

...

Common



Commen contains parts of keyword test which will be used by P1 and P2.



When I use Insert Operation, Run Keyword Test in a test in P1 I can not see anything outside of P1.



Therefore my question is:

Can the above be done and if yes how?



Many thanks for your answer.

5 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    In P1, right click on your Keyword Tests node in project explorer.  Select "Add | Existing Item".  Browse to the location of the existing routine/script/keyword test from your Common project and select it.  This will add the existing item to P1 and now it can be used with P1.  Same for P2.  This is a fairly common practice if, across multiple projects, there are items you wish to have shared by those projects.
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Everything you want to be able to execute in P1 you need to add to P1.  You can't call stuff from Common directly in P1 without indicating the inclusion in some way.  



    So, for example, you'd need to create the TestedApp that you are calling in Common in P1 in order to be able to make the indication in P1.
  • maurus_spescha's avatar
    maurus_spescha
    Occasional Contributor
    Can you be more specific?

    I would like a step by step description of how to add a reference.

    Many thanks.
  • maurus_spescha's avatar
    maurus_spescha
    Occasional Contributor
    Hi,



    thanks for your answer.

    I tried your approach. Unfortunately it does not work.



    My setup is the following:

    P1 is in its own ProjectSuite

    P2

    ...

    Common is in its own ProjectSuite



    Common contains a test starting my application. The start contains:

    TestedApps

    Scripts

    KeywordTest -> Test = StartApplication



    P1, P2 ... contains only KeywordTest



    P1 contains the KeywordTest DoSomething



    DoSomething uses StartApplication from common.

    StartApplication is added to P1 by right clicking on KeywordTests, AddExisting and selecting the StartApplication.kcKDTest.



    When I run DoSomethig it complains that it does not find the entry in TestedApps which is only in Common.



    What am I missing?



    Many thanks for your answer.