InitializeContextForShare() public static method

This method is used to initialize the shared test cases' context.
public static InitializeContextForShare ( string requestFileUrl, string userName, string password, string domain, CellStoreOperationType celloperationType, ITestSite site ) : void
requestFileUrl string A parameter represents the file URL.
userName string A parameter represents the user name we used.
password string A parameter represents the password of the user.
domain string A parameter represents the domain.
celloperationType CellStoreOperationType A parameter represents the type of CellStore operation which is used to determine different initialize logic.
site ITestSite A parameter represents the site.
return void
Example #1
0
 /// <summary>
 /// This method is used to get WOPI token and add headers.
 /// </summary>
 /// <param name="requestFileUrl">A parameter represents the file URL.</param>
 /// <param name="userName">A parameter represents the user name we used.</param>
 /// <param name="password">A parameter represents the password of the user.</param>
 /// <param name="domain">A parameter represents the domain.</param>
 protected override void InitializeContext(string requestFileUrl, string userName, string password, string domain)
 {
     // Get WOPI token and add headers for the file exists.
     TestSuiteHelper.InitializeContextForShare(requestFileUrl, userName, password, domain, CellStoreOperationType.NormalCellStore, this.Site);
 }