Skip to content

Commit 0f35aed

Browse files
Added extra comments about "Eyes open"
1 parent 6ad8601 commit 0f35aed

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Applitools.Example.Tests/AcmeBankTest.cs

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,24 @@ public void OpenBrowserAndEyes()
103103
// It is a recommended practice to set all four inputs:
104104
string testName = NUnit.Framework.TestContext.CurrentContext.Test.Name;
105105
Eyes.Open(
106-
Driver, // WebDriver object to "watch"
107-
"ACME Bank Web App", // The name of the app under test
108-
testName, // The name of the test case
109-
new Size(1024, 768)); // The viewport size for the local browser
106+
107+
// WebDriver object to "watch".
108+
Driver,
109+
110+
// The name of the application under test.
111+
// All tests for the same app should share the same app name.
112+
// Set this name wisely: Applitools features rely on a shared app name across tests.
113+
"ACME Bank Web App",
114+
115+
// The name of the test case for the given application.
116+
// Additional unique characteristics of the test may also be specified as part of the test name,
117+
// such as localization information ("Home Page - EN") or different user permissions ("Login by admin").
118+
testName,
119+
120+
// The viewport size for the local browser.
121+
// Eyes will resize the web browser to match the requested viewport size.
122+
// This parameter is optional but encouraged in order to produce consistent results.
123+
new Size(1024, 768));
110124
}
111125

112126
/// <summary>
@@ -166,4 +180,4 @@ public static void PrintResults()
166180
TestResultsSummary allTestResults = Runner.GetAllTestResults();
167181
Console.WriteLine(allTestResults);
168182
}
169-
}
183+
}

0 commit comments

Comments
 (0)