Forum Discussion
Giving us all this information at once would really be better. See how long it is taking to maybe get an answer?
Now it looks like you are saying that the TC tests are different from the TE tests. Is that true?
I highlighted the main project that is MAsterProject_ECS360 in Test complete and the login script that I highlighted under that is origibal script. It has been working for 9 months in Test Complete .
I created a TestProject1 to run through Test Execute and copied the Login_Ecs360_Chantilly script from MasterProject_Ecs360 .
Both Login scripts are the same but the script Login_Ecs360_Chantilly under TestProject1 when I ran it through Tets Execute or manually in Test complete it was failing and made me remap the objects again and after remapping only it worked through Test Execute and manually in Tets Complete.
What is the difference between teh two projects? nothing
My issue is if I add other scripts that are multiple objects will I need to remap them again if I need to run through Test Execute.
Hope I am able to explain the issue in screenshot below.
- tristaanogre7 years agoEsteemed Contributor
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.
- tristaanogre7 years agoEsteemed Contributor
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.
- tristaanogre7 years agoEsteemed Contributor
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...
- Marsha_R7 years ago
Champion Level 3
Thanks for the details, those are helpful.
If you use TE to run the login script in MasterProject instead of from TestProject, does it work?
- Marsha_R7 years ago
Champion Level 3
Unless they didn't do that already, in which case it's helpful to know if TE can run the original test. :)
- saranoor7 years agoFrequent Contributor
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
- saranoor7 years agoFrequent Contributor
" configured Test Items " in MasterProject. How do I do this, Please elaborate or guide me to the right documents to read.
- saranoor7 years agoFrequent Contributor
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.
- saranoor7 years agoFrequent Contributor
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.
- saranoor7 years agoFrequent Contributor
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.
Test Complete test items set up.
- Marsha_R7 years ago
Champion Level 3
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?
- saranoor7 years agoFrequent Contributor
It is working with child items but I will try without child items.
Remember that the two child items are being called in the first test item. One is keyword test and another is a script.
- Marsha_R7 years ago
Champion Level 3
Again, the child items do not need to be in the list. When TestComplete runs the main test, it will find whatever child tests are called for and run them automatically.
- saranoor7 years agoFrequent Contributor
The child items are for Test Execute
If I remove achild Item Test Execute cannot run the test.
- Marsha_R7 years ago
Champion Level 3
Then what exactly is your question at this point? Are your tests running in TestExecute now?
- saranoor7 years agoFrequent Contributor
At this point unable to do anything as name mapping file is not found.
- Marsha_R7 years ago
Champion Level 3
Yes, that's in your other thread. Perhaps you can try this again once you've resolved the other problem.
- saranoor7 years agoFrequent Contributor
Will surely try after name mapping is resolved.
Thanks for teh support.