Forum Discussion

hegde217's avatar
hegde217
Member
7 years ago

Dynamic loading of script library

Hi Team , 

 

I would like to load the script library location dynamically in the project load script.

But I was facing some issue where although the log says that the script library location is updated , the step which uses the class from script library was not getting executed. I was facing issue like unable to resolve class.

 

I also found on your documentation as below where in Thread.sleep(12000) has been mentioned.

 

https://support.smartbear.com/readyapi/docs/testing/scripts/library.html#loading-the-library-dynamically

project.scriptLibrary = project.getPropertyValue("dataPath")
Thread.sleep(12000)

 

Is there any reason as to why the sleep is needed. This would slow down our test execution.

Is there any alternative. Please suggest.

 

Thanks

No RepliesBe the first to reply