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 >> IBM/Rational Functional Tester - RobotJ

Pages: 1
Satya99999
Member


Reged: 10/11/06
Posts: 48
Loc: Bangalore
Query regarding with Drag and Drop feature.
      #334626 - 10/11/06 03:42 AM

Hi.
I am working on a .Net application which has a Drag and Drop feature.
I am using Rational Functional Tester 6.1.0.457 for recording this feature.
When the RFT is playing back it gets stuck up at the point where the drag and drop features code is there.
After few seconds(may be a minute) the log shows that the the play back is successful.
I have tried a lot and i am really struggling with this.I request you to please help me out regarding this issue.

Thanks in Advance.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Graeme F
Member


Reged: 05/09/06
Posts: 126
Loc: Scotland
Re: Query regarding with Drag and Drop feature. [Re: Satya99999]
      #334645 - 10/11/06 05:01 AM

What is the code that is inserted into the script?

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


Reged: 10/11/06
Posts: 48
Loc: Bangalore
Re: Query regarding with Drag and Drop feature. [Re: Graeme F]
      #334800 - 10/11/06 09:25 PM

Hi.
I have not inserted any code.
But the code that is generated by RFT is as follows:

Code:
  

#Region " Script Header "
' Functional Test Script
Imports Microsoft.VisualBasic
Imports Rational.Test.Ft
Imports Rational.Test.Ft.Object.Interfaces
Imports Rational.Test.Ft.Script
Imports Rational.Test.Ft.Value
Imports Rational.Test.Ft.Vp
#End Region

Public Class Script1
Inherits Script1Helper

'Script Name : Script1
'Generated : Oct 12, 2006 9:44:19 AM
'Description : Functional Test Script
'Original Host : Windows 2000 x86 5.0

'since 2006/10/12


Public Function TestMain(ByVal args() As Object)
StartApp("SchemaManager")

BtnOpenButton().Click()


TvSchemaTree().Click(AtPath("Schemas->bgfghf->Location(PLUS_MINUS)"))
TvSchemaTree().Click(AtPath("Schemas->bgfghf->Tables->Location(PLUS_MINUS)"))
TvSchemaTree().Click(AtPath("Schemas->bgfghf->Tables->DepartmentMaster(DepartmentMaster) (DepartmentMaster)->Location(PLUS_MINUS)"))

'
DepartmentMasterDepartmentMast(ANY,NOT_SHOWING).DragToScreenPoint( _
AtPoint(73,4), _
AtPoint(329,108))


MainMenuMenuBar().Click(AtPath("File "))
MainMenuMenuBar().Click(AtPath("File ->Exit"))

' Window: SchemaManager.exe: Save?
NoButton(ANY,MAY_EXIT).Click(AtPoint(32,11))
End Function
End Class






The log shows the following after the script is played back.

exception_name = Rational.Test.Ft.AmbiguousRecognitionException
exception_message = Found 3 instances of the same test object. This often happens when multiple instances of the application are running.
Details: Looking for GuiSubitemTestObject(Name: DepartmentMasterDepartmentMast, Map: DepartmentMasterDepartmentMasterDepartmentMaster).

First object: recognition score:7500, description: {.class=tooltips_class32, screenRectangle={X=0,Y=0,Width=0,Height=0}}

Second object: recognition score:7500, description: {.class=tooltips_class32, screenRectangle={X=0,Y=0,Width=0,Height=0}}

--------------------------------------------------

But there are no instances of the application running.
I request you to sort out this issue.

Thanks in Advance


Post Extras: Print Post   Remind Me!   Notify Moderator  
Graeme F
Member


Reged: 05/09/06
Posts: 126
Loc: Scotland
Re: Query regarding with Drag and Drop feature. [Re: Satya99999]
      #335129 - 10/13/06 02:00 AM

I've never used RFT with a drag and drop function, but from reading above

Would this work;

Code:

TvSchemaTree().Click(AtPath("Schemas->bgfghf->Location(PLUS_MINUS)"));
TvSchemaTree().Click(AtPath("Schemas->bgfghf->Tables->Location(PLUS_MINUS)"));
TvSchemaTree().Click(AtPath("Schemas->bgfghf->Location->DepartmentMaster(PLUS_MINUS)"));
TvSchemaTree().Click(AtPath("Schemas->bgfghf->Tables->DepartmentMaster(DepartmentMaster) (DepartmentMaster)->Location(PLUS_MINUS)"));



I may be barking up the wrong tree, but it's all I can really think of. Sorry if this is no help.

Cheers
Graeme


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


Reged: 10/11/06
Posts: 48
Loc: Bangalore
Re: Query regarding with Drag and Drop feature. [Re: Graeme F]
      #335131 - 10/13/06 02:07 AM

Thanks Graeme.
I will try out and let you know.

Thanks.


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



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

Moderator:  AJ, AllenGay 

Print Topic

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

Rating:
Topic views: 3155

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5