@@ -26,7 +26,6 @@ public static void ClassInitialize(TestContext context)
26
26
{
27
27
// Create session to launch a Calculator window
28
28
_currencyServer = new MockedCurrencyServer ( ) ;
29
- Thread . Sleep ( 5000 ) ;
30
29
CalculatorDriver . Instance . SetupCalculatorSession ( context ) ;
31
30
}
32
31
@@ -47,10 +46,7 @@ public static void ClassCleanup()
47
46
[ TestInitialize ]
48
47
public void TestInit ( )
49
48
{
50
- VerifyConnection ( "http://localhost/calctesting/file/?id=currency+converter+data&localCurrency=en-US" ) ;
51
- VerifyConnection ( "http://localhost/calctesting/file/?id=currency+static+data&localizeFor=en-US" ) ;
52
49
CalculatorApp . EnsureCalculatorHasFocus ( ) ;
53
- Thread . Sleep ( 5000 ) ;
54
50
page . EnsureCalculatorIsCurrencyMode ( ) ;
55
51
page . EnsureCalculatorResultTextIsZero ( ) ;
56
52
page . EnsureSameUnitsAreSelected ( ) ;
@@ -62,26 +58,6 @@ public void TestCleanup()
62
58
page . ClearAll ( ) ;
63
59
}
64
60
65
- private static void VerifyConnection ( string url )
66
- {
67
- Console . WriteLine ( $ "VerifyConnection begins: url: { url } ") ;
68
- var process = new Process ( ) ;
69
- var startInfo = new ProcessStartInfo
70
- {
71
- WindowStyle = ProcessWindowStyle . Hidden ,
72
- FileName = "cmd.exe" ,
73
- Arguments = @$ "/C curl ""{ url } """,
74
- RedirectStandardOutput = true, // Redirect the standard output
75
- UseShellExecute = false,
76
- CreateNoWindow = true
77
- };
78
- process.StartInfo = startInfo;
79
- process.Start();
80
- var debug = process.StandardOutput.ReadToEnd();
81
- process.WaitForExit();
82
- Console.WriteLine($" VerifyConnection ends: exitcode: { process. ExitCode } , curl result : { debug } ");
83
- }
84
-
85
61
private string NormalizeCurrencyText ( string realValue , int fractionDigits )
86
62
{
87
63
if ( ! realValue . Contains ( '.' ) ) return realValue ;
0 commit comments