The test suite we have for one project is getting very large. We want
to try to break it up into seperate .htp files.
Some tests make use of the same scenes. Any ideas as to how we could
define a scene once, and use it in multiple projects? I thought to
try to call LoadProject and switch between project files during a
test, but I'm not having any luck.
You can use LoadProject, but it may require "manual" identification which
can greatly decrease performance. For example, the following sequence
should work:
LoadProject->Navigate->WaitForScene->Click->LoadProject->Sleep->RunIdentification(Manual)->WaitForScene.
You need the manual identification because in some cases a page can load
faster that LoadProject and SWEA automatic identification will be lost - it
is triggered by IE complete events.
You can also create master shared htp file and generate htp file subsets
from it - the htp file is just simple XML.
The best solution could be to share scenes between projects, but it is
currently not supported by SWEA. It will be implemented in future SWEA
releases.
Best Regards,
Alex Furman
_________________________________________________________________
Learn.Laugh.Share. Reallivemoms is right place!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
We await the future release when this will be implemented. In the
meanwhile, since we use Ant/Nant to script our build processes, we
have incorporated a task to merge our individual htp files into one
master htp build artifact. This should get us by ;)
On Aug 17, 1:37 pm, "Alex Furman" <alex_f...@hotmail.com> wrote:
> Jason,
>
> You can use LoadProject, but it may require "manual" identification which
> can greatly decrease performance. For example, the following sequence
> should work:
> LoadProject->Navigate->WaitForScene->Click->LoadProject->Sleep->RunIdentification(Manual)->WaitForScene.
> You need the manual identification because in some cases a page can load
> faster that LoadProject and SWEA automatic identification will be lost - it
> is triggered by IE complete events.
>
> You can also create master shared htp file and generate htp file subsets
> from it - the htp file is just simple XML.
>
> The best solution could be to share scenes between projects, but it is
> currently not supported by SWEA. It will be implemented in future SWEA
> releases.
>
> Best Regards,
> Alex Furman
>
>
>
>
>
> >From: Jason <jgard...@mgmmirage.com>
> >Reply-To: swexplorer...@googlegroups.com
> >To: SWExplorerAutomation <swexplorer...@googlegroups.com>
> >Subject: Mulitple htp files
> >Date: Fri, 17 Aug 2007 09:38:54 -0700
>
> >Alex,
>
> >The test suite we have for one project is getting very large. We want
> >to try to break it up into seperate .htp files.
> >Some tests make use of the same scenes. Any ideas as to how we could
> >define a scene once, and use it in multiple projects? I thought to
> >try to call LoadProject and switch between project files during a
> >test, but I'm not having any luck.
>
> _________________________________________________________________
> Learn.Laugh.Share. Reallivemoms is right place!http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us- Hide quoted text -
>
> - Show quoted text -