Internal Error : UnsupportedFrameworkException

IbrahimAlghamdiIbrahimAlghamdi SAMember

I am starting on UI test from Xamarin website

https://developer.xamarin.com/guides/xamarin-forms/deployment,_testing,_and_metrics/uitest-and-test-cloud/

I got this problem and i don't know how to solve it. After i run the test it show this message ..

I couldn't copy stack trace result

my NUnit pacjage is up to date (3.0.1)
also UI test package (1.3.4)

in myproject.UITest.csproj
<Reference Include="nunit.framework"> <HintPath>..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath> </Reference>

any help please ....

Best Answers

  • AnthonyMehallelAnthonyMehallel US ✭✭✭
    Accepted Answer

    @IbrahimAlghmadi , try with Nunit 2.6.3 or 2.6.4

  • mattwardmattward GB Xamurai
    edited March 2016 Accepted Answer

    Editing the packages.config file will not fix the assembly references in the project. To find an older version of NUnit in the Add Packages dialog use a package version search:

    nunit version:*
    

    Then find and install NUnit 2.6.4 from NuGet.

    There is a more detailed guide on how to do this from the Xamarin developer site

Answers

  • AnthonyMehallelAnthonyMehallel USMember ✭✭✭
    Accepted Answer

    @IbrahimAlghmadi , try with Nunit 2.6.3 or 2.6.4

  • IbrahimAlghamdiIbrahimAlghamdi SAMember
    edited March 2016

    Thanks @AnthonyMehallel for ur respond.

    I found this Nunit 2.6.4 framework with a Test adapter

    image

    and after running the test i got another error 0_0 :
    Internal error
    RemotingException: Unix transport error.

    .
    image

    I searched about it and i found that it is happening because of test adapter

    https://forums.xamarin.com/discussion/30218/remotingexception-unix-transport-error

    @SimonSndergaard said:
    JCast,

    The error is most likely caused by Visual Studio Adapter. See https://github.com/nunit/nunit-vs-adapter/issues/57

    Br,
    /Simon

    Anyway,
    how to downgrade Nunit framework from Xamarin Studio?
    I didn't find Nunit 2.6.3 or 2.6.4 in Xamarin studio.

  • AnthonyMehallelAnthonyMehallel USMember ✭✭✭
    edited March 2016

    Hi @IbrahimAlghmadi

    Step 1
    In the folder "Packages" : delete the package Nunit

    Step 2
    Rebuilt the project -> Nunit's package must be removed from the project

    Step 3
    In the file : package.config, add this :

    <?xml version="1.0" encoding="utf-8"?>
    < packages>
    < package id="NUnit" version="2.6.3" targetFramework="net45" />
    < package id="Xamarin.UITest" version="1.3.3" targetFramework="net45" />

    Step 4
    rebuild the project and actualise the folder Packages

    Result :
    you must have 2 packages in the folder "Packages"
    - Nunit 2.6.4
    - Xamarin.UI.Test 1.3.3

  • mattwardmattward GBMember Xamurai
    edited March 2016 Accepted Answer

    Editing the packages.config file will not fix the assembly references in the project. To find an older version of NUnit in the Add Packages dialog use a package version search:

    nunit version:*
    

    Then find and install NUnit 2.6.4 from NuGet.

    There is a more detailed guide on how to do this from the Xamarin developer site

  • @mattward said:
    Editing the packages.config file will not fix the assembly references in the project.

    Exactly

    Thank you very much @AnthonyMehallel & @mattward

Sign In or Register to comment.