1. MsTest Framework || Part - 1.

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 20

  • @kele5181
    @kele5181 4 года назад +2

    Excellent course, very relevant even in 2021. Thank you for making this!

    • @RahulRathore41
      @RahulRathore41  4 года назад

      Glad it was helpful!
      if you like my work please do subscribe to my channel & Share!!

  • @sravanthikunchapu9390
    @sravanthikunchapu9390 3 года назад

    Such a clean and neat explanation...keep going sir

    • @RahulRathore41
      @RahulRathore41  3 года назад

      Thanks a ton
      If you like my work please do subscribe to my channel & Share!

  • @manasaguduru808
    @manasaguduru808 2 года назад +1

    Hello sir, if am executing tests in Jenkins with these attributes, TestCleanup method is not executed. please suggest

    • @RahulRathore41
      @RahulRathore41  2 года назад

      Can you share your code snippet via GitHub? I need to check it from my side.

  • @mkhwald
    @mkhwald 3 года назад +1

    please sir, the ClassCleanup does not display in output after testmethod3

    • @RahulRathore41
      @RahulRathore41  3 года назад

      In the recent release, they have made changes in this area.
      "There is no guarantee that the class cleanup will run immediately after all tests from that class are complete"
      Refer to the following post
      developercommunity.visualstudio.com/content/problem/322923/classcleanup-attribute-not-working-as-expected.html
      You can put a debug point in the ClassCleanup method and check the execution of the method

  • @sandamalperera
    @sandamalperera 7 лет назад +1

    Good video, Thanks for sharing (Y)

  • @bantirathod6959
    @bantirathod6959 3 года назад +1

    Hello sir, I am getting an error that, I simply created class, which contains 2 testmethods And 1 ClassInitialize method & ClassCleanup method but when i try to ecxcute my then my all testmethods skips
    And when i run it after removing ClassInitialize method then my all test methods run fine
    i also tried with changing version the version of MSTest unit testing framework

    • @RahulRathore41
      @RahulRathore41  3 года назад

      What is the error you are getting? Can you please provide the complete stack trace?

  • @sravanthikunchala7337
    @sravanthikunchala7337 2 года назад

    Hi could you please let me know how to run the mstest from command prompt ,

    • @sravanthikunchala7337
      @sravanthikunchala7337 2 года назад

      What commands we need to use to execute the .vb file from cmd

    • @RahulRathore41
      @RahulRathore41  2 года назад

      .vb is Visual Basics Script. I don't think you can run the vb script with MSTest. Although, you can run the DLL files that get generated for the project that use attributes provided by the MSTest framework.
      You can read more about it here - github.com/microsoft/testfx/blob/main/docs/README.md

    • @sravanthikunchala7337
      @sravanthikunchala7337 2 года назад +1

      There is automated script in a project I want to run a single test from project using cmd .. could you please help me In detail

    • @RahulRathore41
      @RahulRathore41  2 года назад

      MSTest.exe /testcontainer:"" /resultsfile:""
      Example
      MSTest.exe /testcontainer:"C:\Users\seleniumwebdrivers\1.0.0.4\bin\Debug\SeleniumWebDrivers.dll" /resultsfile:"D:\abc\projectx-customer-selenium\TestResult.trx"

  • @Tushar00732
    @Tushar00732 6 лет назад

    very helpful.. Thanks a lot

    • @RahulRathore41
      @RahulRathore41  5 лет назад

      Thanks for the feedback. Kindly subscribe like and share

  • @sakshigaikwad2602
    @sakshigaikwad2602 3 года назад

    Hello sir, may I get your this PDF

    • @RahulRathore41
      @RahulRathore41  3 года назад

      i do not have the PDF any more.
      see if this can help
      docs.microsoft.com/en-us/visualstudio/test/using-microsoft-visualstudio-testtools-unittesting-members-in-unit-tests?view=vs-2022