Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using Java library in Soap UI

ymkocv
March 18, 2018

Using Java library in Soap UI

How to use Java lib in Soap UI

ymkocv

March 18, 2018
Tweet

More Decks by ymkocv

Other Decks in Technology

Transcript

  1.  QA lead at N-iX  Approx 8 years in

    IT  BI, AB, API, UX/UI testing  A bit of coding (Java, Groovy)  QA Club Lviv co-founder
  2.  API testing is a type of software testing that

    involves testing application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security. *Wiki
  3.  Manual testing  Automated testing (CI/CD)  Both REST

    & SOAP  Performance testing  Mocking  Java & Groovy
  4.  Test data for DDT: names, emails, integers etc 

    Big piece of code: e.g. registering emails box  Test frameworks
  5. public class Randoms { public static String generateEmail(int charCount) {

    String email = RandomStringUtils.randomAlphanumeric(charCount) + "@test.com"; return email; } public static String generateRandomString(int count){ String capital = RandomStringUtils.randomAlphabetic(1).toUpperCase(); String randomStr = capital + RandomStringUtils.randomAlphabetic(count-1).toLowerCase(); return randomStr; } }
  6. public class DatesOptions { public static Date generalModificationOfDate(Date date, int

    count, int calendarItem) { Calendar cln = Calendar.getInstance(); cln.setTime(date); cln.add(calendarItem, count); return cln.getTime(); } public static String dateAddDay(Date date, String pattern, int count) { Date newDate = generalModificationOfDate(date, count, Calendar.DATE); return formatDate(newDate, pattern); } }