Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
WatiN for Sharepoint 
administrators 
Using WatiN for avoiding limitations of sandbox solutions 
and client object model i...
What is WatiN? 
 Web browsers automation and testing framework 
 .Net port of WatiR library from Ruby world 
 Drives br...
 Example of web test automation: 
 Demo 
What is WatiN?
WatiN features 
 Automate all major HTML elements 
 Find elements by multiple attributes 
 Supports AJAX website testin...
Real world example: custom 
document set 
Meeting CT 
Document set CT 
allowed CT shared metadata 
Meeting 
document CT 
D...
Metadata model 
Meeting CT: 
- Meeting name 
- Meeting date 
- Meeting comments 
Meeting document CT: 
- Meeting name 
- M...
Initial document set settings
Document set settings after wsp 
update
Document set configuration 
 How to automatically configure document set during 
update of sandbox solution? 
 Sandbox a...
Demo 
 Running WatiN script from PowerShell for configuring 
document set
WatiN script for configuring document set settings
Use WatiN with Sharepoint Online 
 Additional step: enter credentials on login page
Use WatiN with Sharepoint Online 
 Enter Sharepoint Online credentials using WatiN
Links and materials 
 http://watin.org/ -WatiN site 
 http://watir.com/ - original WatiR site 
 http://sadomovalex.blog...
Upcoming SlideShare
Loading in …5
×

Using WatiN in Sharepoint

720 views

Published on

Shows how to use WatiN for avoiding limitations of sandbox solutions and client object model in Sharepoint

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Using WatiN in Sharepoint

  1. 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. 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. 3.  Example of web test automation:  Demo What is WatiN?
  4. 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. 5. Real world example: custom document set Meeting CT Document set CT allowed CT shared metadata Meeting document CT Document CT inherits inherits
  6. 6. Metadata model Meeting CT: - Meeting name - Meeting date - Meeting comments Meeting document CT: - Meeting name - Meeting date - Document type - Owner Shared metadata
  7. 7. Initial document set settings
  8. 8. Document set settings after wsp update
  9. 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. 10. Demo  Running WatiN script from PowerShell for configuring document set
  11. 11. WatiN script for configuring document set settings
  12. 12. Use WatiN with Sharepoint Online  Additional step: enter credentials on login page
  13. 13. Use WatiN with Sharepoint Online  Enter Sharepoint Online credentials using WatiN
  14. 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

×