http://screencast.com/t/s6SSOjNr
I do not understand why time tracked ?
How stop it after tests? May be logout by ps?
end of yml file:
after_deploy:
- vstest.console /logger:Appveyor WiseLabs.WeekPlan.SeleniumTests\bin\UI\WiseLabs.WeekPlan.SeleniumTests.dll
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

#1 Posted by Feodor Fitsner Support staff on 09 Dec, 2015 06:55 PM
When did you start experiencing this issue?
-Feodor
#2 Posted by dsalodki on 09 Dec, 2015 07:33 PM
I noticed only few builds ago
#3 Posted by Feodor Fitsner Support staff on 09 Dec, 2015 07:38 PM
Is it Visual Studio 2015 project?
#4 Posted by dsalodki on 09 Dec, 2015 07:51 PM
2013
#5 Posted by Feodor Fitsner Support staff on 09 Dec, 2015 08:04 PM
OK, then it's not VS 2015 Update 1.
Do you spawn any new processes during tests?
#6 Posted by dsalodki on 09 Dec, 2015 08:22 PM
I do not use RDP so no ...
#7 Posted by Feodor Fitsner Support staff on 09 Dec, 2015 08:23 PM
I mean inside of your tests - do you start new child processes?
#8 Posted by dsalodki on 09 Dec, 2015 08:37 PM
no. I use reflection like
#9 Posted by dsalodki on 09 Dec, 2015 08:38 PM
private void ReRun(string fullClassName, string testName)
{
var type = Type.GetType(fullClassName);
dynamic instance = Activator.CreateInstance(type);
var method = type.GetMethod(testName);
var initializeMethod = type.GetMethod("TestInitialize");
try
{
initializeMethod.Invoke(instance, null);
method.Invoke(instance, null);
cleanUp(type, instance);
.............................
#10 Posted by dsalodki on 09 Dec, 2015 08:39 PM
It is simple Selenium SPA tests, js scripts sometimes run
#11 Posted by Feodor Fitsner Support staff on 09 Dec, 2015 08:41 PM
Do you start Web Driver executables (Chrome or IE) during the tests?
#12 Posted by dsalodki on 09 Dec, 2015 09:12 PM
of course - Selenium tests at the end (Chrome driver)
#13 Posted by Feodor Fitsner Support staff on 09 Dec, 2015 09:17 PM
Make sure Chrome driver process is killed in tests tear down. This is how it's made for xunit runner: https://github.com/FeodorFitsner/selenium-tests/blob/master/Seleniu...
I think you may just kill its process for simplicity.
#14 Posted by dsalodki on 09 Dec, 2015 09:24 PM
Thanks! Great! I use custom attribute so I have not disposed driver.
dsalodki closed this discussion on 17 Jun, 2016 07:12 PM.