eBay / ebay-oauth-csharp-client

eBay OAuth C# Client Library
Apache License 2.0
54 stars 40 forks source link

Unit Test Issues #9

Open arpetris opened 4 years ago

arpetris commented 4 years ago

I used the unit tests to verify that I had my eBay developer account set up correctly, and I found several issues with the unit tests.

1) For the GetAccessToken_EndToEnd_Production and GetAccessToken_EndToEnd_Sandbox tests the sign in page no longer has element id's of userid and pass, instead they are numeric and change for each visit to the sign in form. I didn't look at changing the logic to find the correct fields, I debugged the test case and manually gave access.

2) At least for my eBay developer account the values in the scopes list were only valid for the sandbox so GetAccessToken_EndToEnd_Production would fail with an invalid scope error.

3) XUnit no longer writes to the console. Instead it takes a ITestOutputHelper as an argument to the test constructor and saves the references. Then it uses that reference to log. The log results are available in the Test Detail Summary for each test.