cancel
Showing results for 
Search instead for 
Did you mean: 

Working with more then one project

maurus_spescha
Occasional Contributor

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 5
murugans1011
Regular Contributor

RE: Working with more then one project

Add refrence for common to all projects
maurus_spescha
Occasional Contributor

RE: Working with more then one project

Can you be more specific?

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

Many thanks.
tristaanogre
Community Hero

RE: Working with more then one project

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.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
maurus_spescha
Occasional Contributor

RE: Working with more then one project

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.

tristaanogre
Community Hero

RE: Working with more then one project

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.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors