D NAgpal - 2014-09-17

Hello i am new to genie automation development work and not able to understand why the Below script generated by Genie is not running correctly, although on some other component(in the same swf) it working fine but this is the specific area(component) where genie is not able to run its own generated script.

can anyone please help on this. Thanks in advance.

package scripts;

import com.adobe.genie.genieCom.SWFApp;
import com.adobe.genie.executor.GenieScript;
import com.adobe.genie.executor.components.;
import com.adobe.genie.executor.uiEvents.
;
import static com.adobe.genie.executor.GenieAssertion.*;
import com.adobe.genie.executor.enums.GenieLogEnums;

/**

  • This is a sample Genie script.
    */
    //Change name of the class
    public class TestGame2 extends GenieScript {

    public TestGame2() throws Exception {
    super();

    }

    @Override
    public void start() throws Exception {
    //Turn this on if you want script to exit
    //when a step fails
    EXIT_ON_FAILURE = false;

    //Turn this on if you want a screenshot 
    //to be captured on a step failure
    CAPTURE_SCREENSHOT_ON_FAILURE = false;
    
    SWFApp app1=connectToApp("[object PhoenixAndDragonAdpWrapper]");
    (new GenieDisplayObject("FP^TopDownReel:::SE^PreRasteredReelSymbol:::CH^Bitmap::PX^0::PTR^0::IX^1::ITR^3",app1)).click(43,83,621,446,1000,690,3,false);
    (new GenieMovieClip("SP^MinusBtnGfx:::FP^Btn_CoinStepperMinusHilite:::SE^content::PX^0::PTR^0::IX^1::ITR^0",app1)).click(3,1,15,15,0,0,3,false);
    (new GenieMovieClip("SP^MinusBtnGfx:::FP^Btn_CoinStepperMinusHilite:::SE^content::PX^0::PTR^0::IX^1::ITR^0",app1)).click(3,1,15,15,0,0,3,false);
    (new GenieMovieClip("SP^PlusBtnGfx:::FP^Btn_CoinStepperPlusHilite:::SE^content::PX^0::PTR^1::IX^1::ITR^0",app1)).click(5,4,18,14,0,0,3,false);
    (new GenieMovieClip("SP^PlusBtnGfx:::FP^Btn_CoinStepperPlusHilite:::SE^content::PX^0::PTR^1::IX^1::ITR^0",app1)).click(5,4,975,586,0,0,3,false);
    

    }
    }

Script output :

Start running GenieScript: scripts.TestGame2
Started operation: ConnectToServer, On control: Application
Started operation: ConnectToSWF: [object PhoenixAndDragonAdpWrapper], On control: Application: [object PhoenixAndDragonAdpWrapper]
Started operation: ClickAtLocation, On control: GenieDisplayObject
GenieID of Component: FP^TopDownReel:::SE^PreRasteredReelSymbol:::CH^Bitmap::PX^0::PTR^0::IX^1::ITR^3
Result is: Step Passed
Started operation: ClickAtLocation, On control: GenieMovieClip
GenieID of Component: SP^MinusBtnGfx:::FP^Btn_CoinStepperMinusHilite:::SE^content::PX^0::PTR^0::IX^1::ITR^0
Result is: Step failed
Error Message is:: COMPONENT_OF_GIVEN_GENIEID_NOT_AVAILABLE_ON_STAGE
Started operation: ClickAtLocation, On control: GenieMovieClip
GenieID of Component: SP^MinusBtnGfx:::FP^Btn_CoinStepperMinusHilite:::SE^content::PX^0::PTR^0::IX^1::ITR^0
Result is: Step failed
Error Message is:: COMPONENT_OF_GIVEN_GENIEID_NOT_AVAILABLE_ON_STAGE
Started operation: ClickAtLocation, On control: GenieMovieClip
GenieID of Component: SP^PlusBtnGfx:::FP^Btn_CoinStepperPlusHilite:::SE^content::PX^0::PTR^1::IX^1::ITR^0
Result is: Step failed
Error Message is:: COMPONENT_OF_GIVEN_GENIEID_NOT_AVAILABLE_ON_STAGE
Started operation: ClickAtLocation, On control: GenieMovieClip
GenieID of Component: SP^PlusBtnGfx:::FP^Btn_CoinStepperPlusHilite:::SE^content::PX^0::PTR^1::IX^1::ITR^0
Result is: Step failed
Error Message is:: COMPONENT_OF_GIVEN_GENIEID_NOT_AVAILABLE_ON_STAGE
Total Time taken by Script: 00:01:06.59
Script ended