Clear Control Cache in VS Coded UI
-
1. března 2012 10:49
Hi,
How can I clear control cache so that for the next run, the test searches freshly?
SearchConfiguration.AlwaysSerach is one option but apart from this, is there any other way in coding to clear cache?
Všechny reakce
-
1. března 2012 10:47
Hi,
How can I clear control cache so that for the next run, the test searches freshly other than Searchconfiguration.alwayssearch?
- Sloučený Tony xiaoModerator 2. března 2012 8:00 Duplicate
-
1. března 2012 11:00
Hello,
Are you facing a specific issue that you're trying to resolve by clearing the search cache ?
Issamo san
-
2. března 2012 9:04
Ya san, when I am using searchconfiguration.alwayssearch setting in UIMap.cs class constructor, the test execution is consuming alot of time.
Hence is there any option to clear the control cache in the coding?
-
5. března 2012 11:12Moderátor
Hi madhuou18,
The playback engine has a static method for cleanup could help with this. Also the extra time cost during execution maybe related with smart search, you could disable this depend on your test required.
Here are the links for you, hope this could help:
- http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.uitesting.playback.cleanup.aspx
For Playback.Cleanup().
- http://blogs.msdn.com/b/vstsqualitytools/archive/2011/07/06/improving-the-performance-of-your-coded-ui-tests.aspx
For disable smart search.
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
- Upravený Tony xiaoModerator 6. března 2012 10:18
- Označen jako odpověď Tony xiaoModerator 12. března 2012 1:41
- http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.uitesting.playback.cleanup.aspx