FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
Using WatiN in Sharepoint
1. WatiN for Sharepoint
administrators
Using WatiN for avoiding limitations of sandbox solutions
and client object model in Sharepoint
Alexey Sadomov, PhD, MVP
http://sadomovalex.blogspot.com/
2. What is WatiN?
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
3. Example of web test automation:
Demo
What is WatiN?
4. WatiN features
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
5. Real world example: custom
document set
Meeting CT
Document set CT
allowed CT shared metadata
Meeting
document CT
Document CT
inherits
inherits
6. Metadata model
Meeting CT:
- Meeting name
- Meeting date
- Meeting comments
Meeting document CT:
- Meeting name
- Meeting date
- Document type
- Owner
Shared
metadata
9. Document set configuration
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
10. Demo
Running WatiN script from PowerShell for configuring
document set
12. Use WatiN with Sharepoint Online
Additional step: enter credentials on login page
13. Use WatiN with Sharepoint Online
Enter Sharepoint Online credentials using WatiN
14. Links and materials
http://watin.org/ -WatiN site
http://watir.com/ - original WatiR site
http://sadomovalex.blogspot.com/2014/09/using-watin-
for-avoiding-limitations-of.html