Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-30476

Exception when trying to select an non existent item in DropDownList during QTP replay

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Spark Components
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows
      Language Found: English

    Description

      Steps to reproduce:
      1. Try to automate the testing of a Spark DropDownList containing some elements

      2. Write/Record a script in QTP that opens the dropdown and selects an item that does not exist (if recorded change the slect parameter to something nonexistent like 'XXXX').
      The QTP script looks like this:
      Browser("Name").SparkApplication("SampleApp").SparkTitleWindow("Test").SparkDropDownList("ddl::test").Open
      Browser("Name").SparkApplication("SampleApp").SparkTitleWindow("Test").SparkDropDownList("ddl::test").Select "XXXX"

      3. Replay the script.

      Actual Results:
      The following exception occured:
      Message: Error #1009: Cannot access a property or method of a null object reference.
      Stacktrace: TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.automation::AutomationManager/replayMouseEventInternal()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:2600]
      at Function/<anonymous>()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:2751]
      at mx.automation::AutomationManager$/map()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:315]
      at mx.automation::AutomationManager/replayClick()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:2753]
      at spark.automation.delegates.components.supportClasses::SparkListBaseAutomationImpl/replayMouseClickOnItem()[E:\dev\4.5.1\frameworks\projects\automation_spark\src\spark\automation\delegates\components\supportClasses\SparkListBaseAutomationImpl.as:597]
      at spark.automation.delegates.components.supportClasses::SparkListBaseAutomationImpl/replayAutomatableEvent()[E:\dev\4.5.1\frameworks\projects\automation_spark\src\spark\automation\delegates\components\supportClasses\SparkListBaseAutomationImpl.as:552]
      at spark.automation.delegates.components.supportClasses::SparkDropDownListBaseAutomationImpl/replayAutomatableEvent()[E:\dev\4.5.1\frameworks\projects\automation_spark\src\spark\automation\delegates\components\supportClasses\SparkDropDownListBaseAutomationImpl.as:312]
      at mx.core::UIComponent/replayAutomatableEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:13032]
      at mx.automation::AutomationManager/replayAutomatableEvent()[C:\work\flex\dmv_automation\projects\automation_agent\src\mx\automation\AutomationManager.as:1448]
      at mx.automation.qtp::QTPEventDescriptor/replay()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPEventDescriptor.as:111]
      at mx.automation.qtp::QTPAdapter/replayEvent()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:1080]
      at mx.automation.qtp::QTPAdapter/replayDefaultHandler()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:1146]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.automation.qtp::QTPAdapter/replay()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:1178]
      at Function/<anonymous>()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:1237]
      at mx.automation.qtp::QTPAdapter/useErrorHandler()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:2463]
      at mx.automation.qtp::QTPAdapter/run()[C:\work\flex\dmv_automation\projects\qtp\src\mx\automation\qtp\QTPAdapter.as:1190]
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at flash.external::ExternalInterface$/_callIn()
      at Function/<anonymous>()

      Expected Results:
      An Error is reported indicating that the selection could not be executed. NO EXCEPTION should occur because this prevents further testing.

      Workaround (if any):

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            adobejira Adobe JIRA

            Dates

              Created:
              Updated:

              Slack

                Issue deployment