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