Using WatiN in Sharepoint
-
Upload
sadomovalex -
Category
Technology
-
view
144 -
download
0
description
Transcript of Using WatiN in Sharepoint
![Page 1: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/1.jpg)
WatiN for Sharepoint administrators
Using WatiN for avoiding limitations of sandbox solutions and client object model in Sharepoint
Alexey Sadomov, PhD, MVPhttp://sadomovalex.blogspot.com/
![Page 2: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/2.jpg)
Web browsers automation and testing framework
.Net port of WatiR library from Ruby world Drives browsers the same way people do:
clicks links fills in forms presses buttons checks results, such as whether expected text
appears on the page
What is WatiN?
![Page 3: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/3.jpg)
Example of web test automation:
Demo
What is WatiN?
![Page 4: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/4.jpg)
Automate all major HTML elements Find elements by multiple attributes Supports AJAX website testing Supports creating screenshots of webpages Supports frames and iframes Handles popup dialogs like alert, confirm, login etc. Supports HTML dialogs (modal and modeless) Integration with unit test tools Works with IE 6, 7, 8, 9 and FF 2, 3
WatiN features
![Page 5: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/5.jpg)
Real world example: custom document set
Meeting CT
Document set CT
Meeting document CT
Document CT
inherits
inherits
allowed CT shared metadata
![Page 6: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/6.jpg)
Metadata model
Meeting CT:- Meeting name- Meeting date- Meeting comments
Meeting document CT:- Meeting name- Meeting date- Document type- Owner
Shared metadat
a
![Page 7: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/7.jpg)
Initial document set settings
![Page 8: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/8.jpg)
Document set settings after wsp update
![Page 9: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/9.jpg)
How to automatically configure document set during update of sandbox solution?
Sandbox and client object model don’t have necessary methods which basic object model has in Microsoft.Office.DocumentManagement assembly
WatiN script can be used for making necessary configurations on document set settings page
Document set configuration
![Page 10: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/10.jpg)
Running WatiN script from PowerShell for configuring document set
Demo
![Page 11: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/11.jpg)
WatiN script for configuring document set settings
![Page 12: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/12.jpg)
Additional step: enter credentials on login page
Use WatiN with Sharepoint Online
![Page 13: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/13.jpg)
Enter Sharepoint Online credentials using WatiN
Use WatiN with Sharepoint Online
![Page 14: Using WatiN in Sharepoint](https://reader035.fdocuments.us/reader035/viewer/2022070321/558c74ead8b42aaa468b4628/html5/thumbnails/14.jpg)
http://watin.org/ - WatiN site http://watir.com/ - original WatiR site http://
sadomovalex.blogspot.com/2014/09/using-watin-for-avoiding-limitations-of.html
Links and materials