abhibajare
13 years agoNew Contributor
Referencing Keyword Test from one project into another project
Hi,
I have created different projects to test my application using Test Complete. The project suite hierarchy is as shown below.
ProjectSuite
ProjectCommon
Advanced
Script
CommonScript (This updates project level variable)
Keyword Test
SaveFile
OpenFile
ProjectTest
Advanced
Script
CommonScript (Referenced from ProjectCommon using "Add -> Existing Item...")
Keyword Test
SaveFile (Referenced from ProjectCommon using "Add -> Existing Item...")
OpenFile (Referenced from ProjectCommon using "Add -> Existing Item...")
SaveOpen (Local test which calls CommonScript, SaveFile and OpenFile)
Problem:
1) When I run CommonScript from ProjectCommon, it runs fine. But when I try to run same CommonScript from ProjectTest (in SaveOpen test), it searches for project level variable in ProjectTest. Actually, I intend to update ProjectCommon variables using CommonScript.
2) When I call SaveFile from ProjectTest, I expect SaveFile to use Namemapping file from ProjectCommon where it is created\exists. But this doesn't work unless I merge ProjectCommon namemapping file into ProjectTest namemapping file.
I expected it to work same as how C# project works when we reference 1 project into another.
Thanks!
I have created different projects to test my application using Test Complete. The project suite hierarchy is as shown below.
ProjectSuite
ProjectCommon
Advanced
Script
CommonScript (This updates project level variable)
Keyword Test
SaveFile
OpenFile
ProjectTest
Advanced
Script
CommonScript (Referenced from ProjectCommon using "Add -> Existing Item...")
Keyword Test
SaveFile (Referenced from ProjectCommon using "Add -> Existing Item...")
OpenFile (Referenced from ProjectCommon using "Add -> Existing Item...")
SaveOpen (Local test which calls CommonScript, SaveFile and OpenFile)
Problem:
1) When I run CommonScript from ProjectCommon, it runs fine. But when I try to run same CommonScript from ProjectTest (in SaveOpen test), it searches for project level variable in ProjectTest. Actually, I intend to update ProjectCommon variables using CommonScript.
2) When I call SaveFile from ProjectTest, I expect SaveFile to use Namemapping file from ProjectCommon where it is created\exists. But this doesn't work unless I merge ProjectCommon namemapping file into ProjectTest namemapping file.
I expected it to work same as how C# project works when we reference 1 project into another.
Thanks!