Forum Discussion

jackson_1's avatar
jackson_1
Frequent Contributor
12 years ago

Application not responding while Action done

there is a case like this:

1.launch application under system

2.click i accept the license radio button

3.click next button

4................



and my script organization like this:

1.QI_LaunchInstaller

2.QI_Clickaccept

3.QI_ClickNext



as our automation script all runs in test environment with Test Execute. i always meet this problem duration test processing.

 the script stopped on the QI_ClickNext  position as the Next is disabled. and check the next button really disabled as the Click Accept action not completely finish. why? i check the test log it show the QI_Clickaccept routine completed. but then i go to the application page found that the accept not be checked. so cause that problem.



as i mentioned i used test execute to run scripts in box. then i tried test complete to run the same test case is works well. any one who knows what's wrong with this?



how to solve the problem that the script action done but the application no responding?

  • Are you sure you click the right place on the "accept" radio button?

    Try using .click(5,5) to click the top left corner of the button.



    You can also insert a breakpoint afterwards and see if it really clicks.



  • jackson_1's avatar
    jackson_1
    Frequent Contributor
    i tried all possible method in my script to do this action but it still existing.



    i think the biggest possible that why the application will be hanging while script doing this action?



    i also tried this with Test Complete but it works well in same system. so is possible that caused by test execute?



    i posted my script piece like this:



    =================================================

    procedure QI_LicensePage_UserSelection(aDataID: string);


    var

        aButtonName: string;



    begin



        aButtonName: = GetCellValue('QI_LicensePage_UserSelection',aDataID,'I_UserSelection');

       

        Sys.Refresh;

        //Sys.Process('QI').VCLObject('frmQIWizard').VCLObject('pnlMain').Refresh;

        //AcceptBtn: = Sys.Process('QI').VCLObject('frmQIWizard').VCLObject('pnlMain').VCLObject('pnlFrameHolder').VCLObject('Licensing').VCLObject('pnlUserSelection').FindChild('Caption','I &accept these terms');

        //Notacceptbtn: = Sys.Process('QI').VCLObject('frmQIWizard').VCLObject('pnlMain').VCLObject('pnlFrameHolder').VCLObject('Licensing').VCLObject('pnlUserSelection').FindChild('Caption','I &do not accept these terms');

        Aliases.QI.QI_frm_Main.Refresh;

        AcceptBtn: = Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.QI_rb_Accept;

        Notacceptbtn: = Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.QI_rb_NoWay;

       

       

        Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.Refresh;

        Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.RefreshMappingInfo;

        Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.QI_rb_Accept.Refresh;

        Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.QI_rb_Accept.RefreshMappingInfo;

       

        if not AcceptBtn.Exists then

        begin

            Log_StepError('The Accept Radio button Does Not Exists!');

            StopWorkflow: = true;

            exit;

        end;

       

        if UpperCase(aButtonName) = UpperCase('Accept') then

        begin

            AcceptBtn.Click;

            Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.QI_rb_Accept.Refresh;

            Log_StepMsg('Click Accept Button!');

        end

        else

        begin

            Notacceptbtn.Click;

            Aliases.QI.QI_frm_Main.QI_TframeLicensing_LicensePage.QI_rb_NoWay.Refresh;

            Log_StepMsg('Click I do not accept these terms Radio button!');

        end;

    ====================================================================

     


  • I have doubt that option text and option control are two different component, because you are clicking on text "I accept these terms" and it is not toggling option value.

  • jackson_1's avatar
    jackson_1
    Frequent Contributor
    but the strangely was it not works well everytime. sometimes it works well