Forum Discussion

xtrem_32xx's avatar
xtrem_32xx
New Contributor
13 years ago

Create synchpoints dynamically and check if they exists

Hi..

is it possible to create a synchpoints dynamically ?if yes

how would i create a synchpoint dynamically in my C# project in VS2010?



thanks in advance




1 Reply

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Mo,



    You can't define synchpoints dynamically - you need to add them to the projects beforehand. See Creating Synchpoints for details. However, you can reuse the same synchpoint multiple times during the distributed test run.



    To answer the other question about the way to check whether a specific synchpoint is defined, you can use aqObject.IsSupported(NetworkSuite.SynchPoints, "SynchpointName") for this purpose. In a C# Connected Application, it should look like this:

    , "SynchpointName"))

    {

      // synchpoint exists

    }

    else

    {

      // synchpoint doesn't exist

    }