+ All Categories
Home > Technology > Using WatiN in Sharepoint

Using WatiN in Sharepoint

Date post: 26-Jun-2015
Category:
Upload: sadomovalex
View: 145 times
Download: 0 times
Share this document with a friend
Description:
Shows how to use WatiN for avoiding limitations of sandbox solutions and client object model in Sharepoint
Popular Tags:
14
WatiN for Sharepoint administrators Using WatiN for avoiding limitations of sandbox solutions and client object model in Sharepoint Alexey Sadomov, PhD, MVP http://sadomovalex.blogs pot.com /
Transcript
Page 1: Using WatiN in Sharepoint

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

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

Example of web test automation:

Demo

What is WatiN?

Page 4: Using WatiN in Sharepoint

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

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

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

Initial document set settings

Page 8: Using WatiN in Sharepoint

Document set settings after wsp update

Page 9: Using WatiN in Sharepoint

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

Running WatiN script from PowerShell for configuring document set

Demo

Page 11: Using WatiN in Sharepoint

WatiN script for configuring document set settings

Page 12: Using WatiN in Sharepoint

Additional step: enter credentials on login page

Use WatiN with Sharepoint Online

Page 13: Using WatiN in Sharepoint

Enter Sharepoint Online credentials using WatiN

Use WatiN with Sharepoint Online


Recommended