Forum Discussion

thiyagu's avatar
thiyagu
Occasional Contributor
30 days ago

How to use TcxProgressBar Object in test complete script using VBscript

I want to validate the progress bar for desktop application, so that how can use TcxProgressBar Object in test complete if any reference programing script is there for any one please share it. it's helpful for me to validate the progress bar.

1 Reply

  • Humashankar's avatar
    Humashankar
    Champion Level 0

    Hi  

    To use the TcxProgressBar object in TestComplete script using VBScript

    1. Try to add a reference to the TcxProgressBar object in your script by adding the following line:

    Const TcxProgressBar = 0

     

    This makes TestComplete to use the TcxProgressBar object from the TestComplete SDK.

    1. Find to Get a reference to the progress bar control on the desktop application's window.

    You can do this using the Window object and the GetControl method

    Set progressBar = Window("MyApp").GetControl("ProgressBar")

    Replace "MyApp" with the actual title of the application window, and "ProgressBar" with the actual name of the progress bar control.

    1. Use the TcxProgressBar object to validate the progress bar state. For example, to check the progress bar value:

    If progressBar.Value = 50 Then

    Or to check the progress bar status

    If progressBar.Status = TcxProgressBarStatus.pbStatusIndeterminate Then

    Some help reference articles :

    TcxProgressBarProperties Object | TestComplete Documentation (smartbear.com)

    TcxProgressBar Class | VCL | DevExpress Documentation

     

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!

    Warm regards