Number plans and Outbound Routes need more time to be created

Hello,

I am trying to automate the construction of a site with its number plans and outbound routes.
Although I can do it, I must wait ( around 2 seconds ) between the creation of the site and the creation of a number plan. So the steps are something like this:

  • Create site
  • Wait 2 seconds (Thread.sleep(2000))
  • Create Number Plan
  • Create Outbound Route

I want to ask if the time I have to wait is mandatory or if I am doing something wrong with my implementation.

What has brought you to this conclusion?

I have tried many things including restructure of the code etc but the only way to make it work is to wait 2 seconds.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.