Open Closed

Regarding Unit Test Case Issue #1667


User avatar
0
ChetanKumbhar created

Hi, We tried to run test suite, but we are getting following error.

The active test run was aborted. Reason: Test host process crashed [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.3+1b45f5407b (64-bit .NET 5.0.5) [xUnit.net 00:00:01.60] Discovering: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.63] Discovered: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.64] Starting: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests The active test run was aborted. Reason: Test host process crashed

We have changed version from v3.0.4 to v4.3.1, please help me for resolve this issue. what i am missing.

  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

26 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Steps to reproduce the issue

  • User Avatar
    0
    ChetanKumbhar created

    We just updated Abp.io version from v3.0.4 to v4.3.1 & VS version 16.10, after just added new test case, but we could run the test case.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a minimum project to reprooduce the problem?

  • User Avatar
    0
    ChetanKumbhar created

    can we connect on online session?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://zoom.us/j/96527185686?pwd=YjEwZy9wMkdxM0JveDNmcmJoeWZIQT09

  • User Avatar
    0
    ChetanKumbhar created

    @maliming, I have fixed that issue can we connect again on online session ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Did you run the unit test again? What error do you get now?

  • User Avatar
    0
    ChetanKumbhar created

    Yes, i Run the test again, but i am getting An error occurred during ConfigureServices phase of the module Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=4.3.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---- System.IO.IOException : The process cannot access the file **************.Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process.

    & also tests get aborted. 
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a minimum project? ZOOM is slow, and your project is also complicated.

  • User Avatar
    0
    ChetanKumbhar created

    Hi, Due to security reason i can't share project & there are dependent libraries, so we can connect on zoom call.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    so we can connect on zoom call.

    ZOOM is so slow,

    The process cannot access the file **************.Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process.

    You can use code below in your test module.

    public override void PreConfigureServices(ServiceConfigurationContext context)
    {
        PreConfigure<AbpIdentityServerBuilderOptions>(options =>
        {
            options.AddDeveloperSigningCredential = false;
        });
    
        PreConfigure<IIdentityServerBuilder>(identityServerBuilder =>
        {
            identityServerBuilder.AddDeveloperSigningCredential(false, System.Guid.NewGuid().ToString());
        });
    }
    
  • User Avatar
    0
    ChetanKumbhar created

    Hi, I am still getting that same error. I put this code in ***********************\modules\profile\test\SCV.Litmus.ProfileManagement.TestBase/ProfileManagementTestBaseModule.cs

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I suggest you find a way to provide a project that reproduces the problem under the security requirements.

  • User Avatar
    0
    ChetanKumbhar created

    Hi, Lets try with zoom again. Or is there any other way to connect online.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://support.abp.io/QA/Questions/1667/Regarding-Unit-Test-Case-Issue#answer-59af8b61-8270-1c09-71cc-39fe3ba0cb7f

  • User Avatar
    0
    ChetanKumbhar created

    https://support.abp.io/QA/Questions/1667/Regarding-Unit-Test-Case-Issue#answer-4b5f6c2b-392f-3817-6424-39fe3bb53304

  • User Avatar
    0
    alper created
    Support Team Director

    see this thread https://github.com/abpframework/abp/issues/3194

  • User Avatar
    0
    ChetanKumbhar created

    Hi,We are still not able to figure out what is root cause of this issue. We tried all the tricks suggested by you. though we are able to stopped the creation of tempkey.jwk file but still we are getting same error as "The process cannot access the file **************.Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process." This is seems to be blocker for us and looks like we need to address this issue on priority so could you please schedule live session so that we can work together to identify the issue. Thanks you.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi ChetanKumbhar

    Your project is very complicated, and the remote is very slow. Please find a way to provide a project.

  • User Avatar
    0
    ChetanKumbhar created

    Hi,

    try to connect through online session, I can not provide project. remote is very slow----should we try again?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Any project that can reproduce the problem is fine, we don't need your complete code.

  • User Avatar
    0
    ChetanKumbhar created

    Lets have a zoom call first then if requires we will work upon creating sample project,but as per our current timeline its little difficult for us to create sample project which produces our issue.

  • User Avatar
    0
    ChetanKumbhar created

    Hi, **"The process cannot access the file .Tests\bin\Debug\net5.0\tempkey.jwk' because it is being used by another process." **

    this Issue is resolved, but following issue still there.

    The active test run was aborted. Reason: Test host process crashed [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.3+1b45f5407b (64-bit .NET 5.0.5) [xUnit.net 00:00:01.60] Discovering: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.63] Discovered: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests [xUnit.net 00:00:01.64] Starting: SCV.Litmus.ProfileManagement.EntityFrameworkCore.Tests The active test run was aborted. Reason: Test host process crashed

  • User Avatar
    0
    alper created
    Support Team Director

    can you explain how did you solve tempkey.jwk problem? can you run the tests in Release mode? (this will filter down to some solution)

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11