The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Borland/Segue SilkTest

Pages: 1
meghakole
Newbie


Reged: 08/19/12
Posts: 2
I am getting error after running the testcases
      #714830 - 08/19/12 11:03 PM

Hi Please help me .i am getting below error for each test when i use text editor.

[ ] *** DefaultBaseState is closing TextEditDocument9 windows
[ ] Closing TextEditDocument9.ChildWin("Document10 ?")
[ ] *** Error: Window '[ChildWin]Document10' was not found
[ ] Occurred in SetActive
[ ] Called from Test1 at m.t(4)
[ ] *** DefaultBaseState is closing TextEditDocument9 windows
[ ] Closing TextEditDocument9.ChildWin("Document11")

i tried same steps with mspaint and it pass the test.
please help if anyone know the solution for this .

Thanks
megha


Post Extras: Print Post   Remind Me!   Notify Moderator  
eggbox
Advanced Member


Reged: 01/27/02
Posts: 457
Loc: Detroit, Michigan
Re: I am getting error after running the testcases [Re: meghakole]
      #714941 - 08/21/12 08:35 AM

Questions:
  • Are you using Classic agent or OpenAgent?
  • What is the application you are using?
  • Have you tried re-identifying the controls to make sure the locator is correct?
  • What is the application that you are testing?


--------------------
//*eggbox


Post Extras: Print Post   Remind Me!   Notify Moderator  
Abhishek2012
Newbie


Reged: 08/22/12
Posts: 2
Re: I am getting error after running the testcases [Re: eggbox]
      #715011 - 08/22/12 05:21 AM

It is because you have hardcoded the Document title. Please pass regex for the same.

Post Extras: Print Post   Remind Me!   Notify Moderator  
meghakole
Newbie


Reged: 08/19/12
Posts: 2
Re: I am getting error after running the testcases [Re: eggbox]
      #715147 - 08/23/12 08:58 PM

Iam using silkTest 2008 R2 Sp1
Version9.2.1.2598
32-Bit Edition

while starting new project i choose Windows client/server based application and it automatically sets open agent

I did not understand meaning of "re-identifying the controls". it is running script as expected but giving error message in result.

I am testing Text Editor 3.0


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mirek_B
Member


Reged: 11/01/06
Posts: 319
Re: I am getting error after running the testcases [Re: meghakole]
      #715392 - 08/28/12 04:56 AM

The easiest way for you may be to try and record the application two times. Each time close the application and start it again, and each time create a new project.
Then if you compare both the frame file and the script you should see some differences where the windows have dynamicaly created locator.
Then you have to deal with it either by using wildcards or by using different attributes.


Post Extras: Print Post   Remind Me!   Notify Moderator  
ST_PowerUser
Member


Reged: 03/19/08
Posts: 90
Re: I am getting error after running the testcases [Re: Mirek_B]
      #719954 - 12/06/12 05:50 AM

I guess I can see what troubles you. The basestate usually drives the application to the base state - that is close any open child windows, in case the application is up and running - in this case this is .ChildWin("Document10 ?")

What happens next is that a .ChildWin("Document10 ?").SetActive is called which fails because it was closed by the base state before.

So solve this you could either make use of leave open constants in the definition of your mainwinow in you main frame file (like frame.inc) or you could go ahead without using the basestate.

As a sidenote 2008 R2 Sp1 is maybe a bit outdated. You may like to take a closer look at a newer realease, where you have Open Agent and it's benefits available.


Post Extras: Print Post   Remind Me!   Notify Moderator  
rakeshraghvani12345
Junior Member


Reged: 01/21/05
Posts: 336
Loc: UK
Re: I am getting error after running the testcases [Re: ST_PowerUser]
      #719955 - 12/06/12 06:26 AM

Microsoft Paint is a SDI (single-document interface) application, similar to Microsoft Notepad. Your Text Editor, Im assuming is a MDI (multiple-document interface) application. When you open a new document, it will have given it a new caption name, e.g. Doc1, Doc2, Doc3 etc.

You need to override your base-state, get the list of child windows, iterate through them and close them.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 9 anonymous users are browsing this forum.

Moderator:  AJ, jamesso, DJGray, David Reed 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 4223

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5