using watin in sharepoint
DESCRIPTION
Shows how to use WatiN for avoiding limitations of sandbox solutions and client object model in SharepointTRANSCRIPT
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/
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?
Example of web test automation:
Demo
What is WatiN?
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
Real world example: custom document set
Meeting CT
Document set CT
Meeting document CT
Document CT
inherits
inherits
allowed CT shared metadata
Metadata model
Meeting CT:- Meeting name- Meeting date- Meeting comments
Meeting document CT:- Meeting name- Meeting date- Document type- Owner
Shared metadat
a
Initial document set settings
Document set settings after wsp update
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
Running WatiN script from PowerShell for configuring document set
Demo
WatiN script for configuring document set settings
Additional step: enter credentials on login page
Use WatiN with Sharepoint Online
Enter Sharepoint Online credentials using WatiN
Use WatiN with Sharepoint Online
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