cancel
Showing results for 
Search instead for 
Did you mean: 

Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Complete

Community Hero

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

NameMapping is stored within the project.  So, you mapped the objects in the MasterProject... that is where the mapping is stored.  If you didn't map the objects in TestProject1, that's why you're running into the object identification errors.

 

Now, you don't HAVE to remap everything.  You can delete the NameMapping node from TestProject1 and use the "Add -> Existing Item" to TestProject1 and point to the NameMapping file that you created in the Master Project.


Robert Martin
[Community Expert Group]
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
Extensions available
Community Hero

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

Unless they didn't do that already, in which case it's helpful to know if TE can run the original test.   Smiley Happy

Frequent Contributor

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

No TE cannot execute the login script in amster project as I see a red X mark indicating that there are no tests.

So I created the TestProject1

Highlighted
Community Hero

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

No.... you did NOT need to create a new project... you need to EDIT your Master Project to have properly configured Test Items to be able to execute your tests.  There is no need to have a separate project...


Robert Martin
[Community Expert Group]
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
Extensions available
Frequent Contributor

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

" configured Test Items " in MasterProject.  How do I do this, Please elaborate or guide me to the right documents to read.

Frequent Contributor

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

Now, you don't HAVE to remap everything.  You can delete the NameMapping node from TestProject1 and use the "Add -> Existing Item" to TestProject1 and point to the NameMapping file that you created in the Master Project.

 

 

This worked.

Frequent Contributor

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

I changed the mapping to teh master project one as you mentioned. Script started working.

Only one login script works even though I have two scripts in TestProject1.

The login is called within teh WO script.

 

But only login works and the other script does not run. I have attached ascreenshot from Test Execute log and also my project screenshot I ahve added in the center.

2 scripts are there outlined in the middle.

 

TEst_Execute1runonly.png

 

Community Hero

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

I repeat:

 

Everything you want to have run via TestExecute must have a Test Item created for it for the method that you're using for execution.  No Test Item -> It won't run.  So, if you want that other script to run, you need to put it in a Test Item.  Refer to the documentation link I gave you earlier as to how to create test items and link scripts.


Robert Martin
[Community Expert Group]
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
Extensions available
Frequent Contributor

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

I deleted the TestProject1 and added test items to master project.

I have one single test and the other two are child items of the first as theya re called within that test.

 

Please let me know if the set up is correct.

Test Execute is running the first script succesfully.

TestItemsSetUp.pngTest Complete test items set up.

Community Hero

Re: Test Execute keyword test fails due to mapping issues, same keyword test is passing in Test Comp

You shouldn't need the child items in that list.  TC and TE will find them when the first test is run.

 

Did you try running this from TE now?  What happened?

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors