Advertisement
Guest User

Untitled

a guest
Feb 15th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. /*
  2. public void configureProject(name, leader, users, items) {
  3. initUsers(); // ensure needed users exist (can be ran just once if testNG has the structure)
  4. initItems(); // ensure needed items exist
  5. api.loginOnToolchain(userName=users[leader].name, password=users[leader].password);
  6. // you can catch an exception and throw an appropriate error, mentioning the missing element
  7. api.sipProjectManagementCreateProjectPost(projects[name].coherenSEobj);
  8. // for each item
  9. api.sipProjectManagementAddServiceImplementationPost(servi ceDefinition);
  10. // or
  11. api.sipProjectManagementAddWatchdogImplementationPost(watchdogDefinition);
  12. // or
  13. api.sipProjectManagementAddPolicyActionImplementationPost(policyActionDefinition);
  14. // depending on the type of item... you can also get items in separate lists and
  15. // deal explicitly with services, watchdogs and policy actions
  16.  
  17. // for each assignment
  18. // ... the same as item but with api call to stuff like
  19. api.sipProjectManagementAssignServiceImplementationPost(SipProjectManagementAssignItemWrapper)
  20. }
  21. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement