Preparare Ambienti SharePoint per i Test

Chi, come il sottoscritto, si trova frequentemente a riprodurre scenari di test o assimilabili a farm di clienti, per validare determinate soluzioni… si trova spesso a fare i conti con degli ambienti SharePoint “usa e getta”.

Gli ambienti possono essere sia on-premises, su delle SharePoint Farm di test (spesso su delle VM sul mio PC o su Azure), che su Office 365, su site collection di test o su tenant di test.

La community di SharePoint ha rilasciato recentemente un efficace script Powershell denominato SharePoint Site Population Script for Testing.

Si tratta di uno script in grado di creare, su ambiente on-premises, un set di strutture e contenuti a piacere, realizzando così un ambiente per i test meno “vuoto” del classico creato durante il provisioning delle componenti di SharePoint.

Per capirci meglio, ecco le componenti che è possibile governare attraverso lo script:

  1. Create a new web application, with a new web application pool.
  2. Create new database and associate it with the new web application.
  3. Update the local HOSTS file to make the new site accessible from the server.
  4. Create a Root Site in the new web application.
  5. Create a Test document and store it in the local temp folder.
  6. Populate the default “Document Library” in the root site with the number of documents specified.
  7. Create new lists in the root site based on the number of lists specified.
  8. Populate each list in the root site with the number of items specified.
  9. Create new sub sites based on the amount specified.
  10. Populate the default “Document Library” in all sub sites with the number of documents specified.
  11. Create new lists in each sub site based on the number of lists specified.
  12. Populate each list in all sub sites with the number of items specified.
sptest.jpg

Per chi lavora su SharePoint Online, ricordo la possibilità di richiedere un Office 365 Tenant di Trial (limitato nel tempo ma gratuito, e spesso più che sufficiente per il periodo dei test), oppure ottenere un Office 365 Demo Tenant (opzione più o meno ricca se si è Microsoft Partner).
Nel caso del Demo Tenant è anche possibile ottenere un ambiente pre-popolato di contenuto e account, veramente efficace per demo e test.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.