7using Microsoft.VisualStudio.TestTools.UnitTesting;
10using TestClass = NUnit.Framework.TestFixtureAttribute;
11using TestMethod = NUnit.Framework.TestAttribute;
12using TestCategory = NUnit.Framework.CategoryAttribute;
20 private const string TestCategory =
"API Configuration";
22 [TestMethod, TestCategory(TestCategory)]
26 Assert.Inconclusive(
"RUN_OFFLINE = true");
31 [TestMethod, TestCategory(TestCategory)]
Create a test class that takes care of setting the server URL and cleaning up after each unit test.
static string API_URL
Location of the REST API being tested against. This can be set using the API_URL environment variable...
virtual void Test_API_Timeout_0()
virtual void Test_API_Server_Active()
Retrieve settings from environment variables if they exist, or the project settings file otherwise.
static bool RUN_OFFLINE
Controls whether tests that normally require a connection to the server should be allowed to try to r...
API methods / requests made available to the user.
static int DefaultRequestTimeout
The default timeout used for all simple server requests, in milliseconds.
static bool IsAReServerActive(string checkServerURL, int? timeout=null)
Determines if the provided URL is a valid running Analyze Re server.