I have Test Suite with several scripts.
When I run Test Suite some of the scripts are failed, however they are running just fine alone.
What could be a problem?
Script failed within Test Suite
Re: Script failed within Test Suite
What's the failure error you are getting?
The problem could be sun spots, but without seeing the failure error and a better description of your conditions it would be hard to pin it on that...
The problem could be sun spots, but without seeing the failure error and a better description of your conditions it would be hard to pin it on that...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Script failed within Test Suite
Hi Ciege,
Here is the error:
Failed to find item 'PIPELINE_CHashRepository.ListN1000.ListItemHome'. The folder 'PIPELINE_CHashRepository.ListN1000' was not found. No element found for path '/list[@controlid='1000']' within 30s.
Show/Hide Stacktrace
at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException) at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException) at PIPELINE_C_.PIPELINE_CHashRepositoryFolders.ListN1000AppFolder.get_ListItemHome() in u:\Ranorex\RanorexStudio Projects\PIPELINE_C#\PIPELINE_C#\PIPELINE_C#Repository.cs:line 44314 at PIPELINE_C_.PIPELINE_PERSONAL_ADD_HOUSEHOLD_MEMBER.Ranorex.Core.Testing.ITestModule.Run() in u:\Ranorex\RanorexStudio Projects\PIPELINE_C#\PIPELINE_C#\PIPELINE_PERSONAL_ADD_HOUSEHOLD_MEMBER.cs:line 174 at Ranorex.Core.Testing.TestSuiteModule.RunInternal(DataContext parentDataContext)
Thanks.
~Eugene
Here is the error:
Failed to find item 'PIPELINE_CHashRepository.ListN1000.ListItemHome'. The folder 'PIPELINE_CHashRepository.ListN1000' was not found. No element found for path '/list[@controlid='1000']' within 30s.
Show/Hide Stacktrace
at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException) at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException) at PIPELINE_C_.PIPELINE_CHashRepositoryFolders.ListN1000AppFolder.get_ListItemHome() in u:\Ranorex\RanorexStudio Projects\PIPELINE_C#\PIPELINE_C#\PIPELINE_C#Repository.cs:line 44314 at PIPELINE_C_.PIPELINE_PERSONAL_ADD_HOUSEHOLD_MEMBER.Ranorex.Core.Testing.ITestModule.Run() in u:\Ranorex\RanorexStudio Projects\PIPELINE_C#\PIPELINE_C#\PIPELINE_PERSONAL_ADD_HOUSEHOLD_MEMBER.cs:line 174 at Ranorex.Core.Testing.TestSuiteModule.RunInternal(DataContext parentDataContext)
Thanks.
~Eugene
Re: Script failed within Test Suite
OK, so you are getting a not found exception... You say that this script works standalone but fails when run within a series of test scripts.
When run in series is this the first script or a successor of the first?
If a successor, is your first script leaving your AUT in a place where the second script expects it to be?
When run in series is this the first script or a successor of the first?
If a successor, is your first script leaving your AUT in a place where the second script expects it to be?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Script failed within Test Suite
This script is not first one in script chain. All of my scripts started and ended on the same AUT page with the same AUT condition. So, I am easy move my scripts up and down within the Test Suite.
Other words, to answer you question - yes, previous script leaving AUT in a place where the next script expects it to be.
Other words, to answer you question - yes, previous script leaving AUT in a place where the next script expects it to be.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Script failed within Test Suite
Hi,
You can check this, after your script failed you can identify the element, which could not be found, with Spy and compare if the RxPath is the same as in your repository or user code?
Regards,
Markus
Ranorex Support Team
Are you sure that the paths to your elements are always the same, even after a restart of your AUT, maybe the controlid have a different value after a restart?/list[@controlid='1000']
You can check this, after your script failed you can identify the element, which could not be found, with Spy and compare if the RxPath is the same as in your repository or user code?
Regards,
Markus
Ranorex Support Team
Re: Script failed within Test Suite
Hi Markus,
Yes, the paths are the same - I am able to highlight the element.
In fact, the failed scripts is running just fine right after it was stopped.
Yes, the paths are the same - I am able to highlight the element.
In fact, the failed scripts is running just fine right after it was stopped.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Script failed within Test Suite
Hi,
Please send us a Ranorex snapshot file of the element which cannot be found?
One during the execution of your scripts and one if the scripts are not executed.
Please also take a look at the genreal troubleshooting section of the user guide, in special at reason #6.
Which .Net version are you using?
Are your application and Ranorex using the same .Net version?
Regards,
Markus
Ranorex Support Team
Please send us a Ranorex snapshot file of the element which cannot be found?
One during the execution of your scripts and one if the scripts are not executed.
Please also take a look at the genreal troubleshooting section of the user guide, in special at reason #6.
Which .Net version are you using?
Are your application and Ranorex using the same .Net version?
Regards,
Markus
Ranorex Support Team