Test after deploy finished - what CI waiting for?

dsalodki's Avatar

dsalodki

09 Dec, 2015 06:48 PM

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. Support Staff 1 Posted by Feodor Fitsner on 09 Dec, 2015 06:55 PM

    Feodor Fitsner's Avatar

    When did you start experiencing this issue?

    -Feodor

  2. 2 Posted by dsalodki on 09 Dec, 2015 07:33 PM

    dsalodki's Avatar

    I noticed only few builds ago

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Dec, 2015 07:38 PM

    Feodor Fitsner's Avatar

    Is it Visual Studio 2015 project?

  4. 4 Posted by dsalodki on 09 Dec, 2015 07:51 PM

    dsalodki's Avatar

    2013

  5. Support Staff 5 Posted by Feodor Fitsner on 09 Dec, 2015 08:04 PM

    Feodor Fitsner's Avatar

    OK, then it's not VS 2015 Update 1.

    Do you spawn any new processes during tests?

  6. 6 Posted by dsalodki on 09 Dec, 2015 08:22 PM

    dsalodki's Avatar

    I do not use RDP so no ...

  7. Support Staff 7 Posted by Feodor Fitsner on 09 Dec, 2015 08:23 PM

    Feodor Fitsner's Avatar

    I mean inside of your tests - do you start new child processes?

  8. 8 Posted by dsalodki on 09 Dec, 2015 08:37 PM

    dsalodki's Avatar

    no. I use reflection like

  9. 9 Posted by dsalodki on 09 Dec, 2015 08:38 PM

    dsalodki's Avatar

    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. 10 Posted by dsalodki on 09 Dec, 2015 08:39 PM

    dsalodki's Avatar

    It is simple Selenium SPA tests, js scripts sometimes run

  11. Support Staff 11 Posted by Feodor Fitsner on 09 Dec, 2015 08:41 PM

    Feodor Fitsner's Avatar

    Do you start Web Driver executables (Chrome or IE) during the tests?

  12. 12 Posted by dsalodki on 09 Dec, 2015 09:12 PM

    dsalodki's Avatar

    of course - Selenium tests at the end (Chrome driver)

  13. Support Staff 13 Posted by Feodor Fitsner on 09 Dec, 2015 09:17 PM

    Feodor Fitsner's Avatar

    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. 14 Posted by dsalodki on 09 Dec, 2015 09:24 PM

    dsalodki's Avatar

    Thanks! Great! I use custom attribute so I have not disposed driver.

  15. dsalodki closed this discussion on 17 Jun, 2016 07:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM