SmartBear Connect 2018
Join us at SmartBear Connect 2018 on October 29th & 30th in Boston, MA.
Apply to speak and share your experience with the greater SmartBear Community
Reply
Highlighted
Occasional Contributor

The requested resource is in use

Hi,

 

When I navigate to a page, sometimes I receive this message "The requested resource is in use".

 

What does it mean?

And How can I manage this error? 

 

This does not look like it is affecting the test.

 

Thanks

 

Stéphane.

Posts: 5,421
Topics: 42
Kudos: 2,364
Solutions: 478
Registered: ‎11-30-2009

Re: The requested resource is in use

Is that a message generated by TestComplete or by your application under test?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program
Occasional Contributor

Re: The requested resource is in use

This is generated in tescomplete in the log 

Posts: 5,421
Topics: 42
Kudos: 2,364
Solutions: 478
Registered: ‎11-30-2009

Re: The requested resource is in use

Can you share the code that you are executing that is generating that message?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program
Occasional Contributor

Re: The requested resource is in use

Hi

basically I loop multiple time through a login on a web page to test performance and stability of the code that I have written. I had so much stability issue with the test pc because of the 2 explorer 32 and 64 bit.

Right now I am not at work. (Working from home)  And the problem is not reproduced on this laptop. Only on the test machine had this issue.

It could happen once out of 30. Sometime not. So... I am trying to understand how to make stable code. And right now that is the only stick in the wheel of  the machine! ;-)

I am getting there! :-)

 

def t():
IP = "10.37.85.12" Log.Message("iCAdminLogin to " + IP) #Login.navigateToPage(IP) Browsers.Item[btIExplorer].Navigate("http://" + IP + "/",10000) propStr = ["Visible", "VisibleOnScreen", "URL"] valueStr = [True, True, "http://" + IP + "/"] #Find Current page while not Sys.Browser("iexplore").Find(propStr, valueStr,60,True).Exists: Log.Warning("Login Page was not ready") aqUtils.Delay(100) Login.clickLogin() Login.setLoginUserName() Login.setLoginPassword() #Verify if login is a success result = Login.verifyLoginStatus() #Logout propStr = ["namePropStr", "Visible", "VisibleOnScreen", "ObjectType"] valueStr = ["logout.jsp", True, True, "Link"] adminPageLogoutObj = Sys.Browser("iexplore").Find(propStr, valueStr,60,True) adminPageLogoutObj.Click() Log.Message("Login result: " + str(result)) return result def t2(): while True: t()