Soapui interview questions and answers

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 4

  • @athirakrishnan6612
    @athirakrishnan6612 4 ปีที่แล้ว +5

    One of the best SoapUI interview question and answer I have come across. Thank you, it was very useful. I will let you know, if I crack the interview :). Thank you again...

    • @LearnTestAutomation
      @LearnTestAutomation  4 ปีที่แล้ว

      Glad to know you found this useful Athira and all the best for your interview.

  • @regondaadnoger4028
    @regondaadnoger4028 4 ปีที่แล้ว +1

    Hi author. Can you help me ?
    My problem:
    My test suite have 100+ test cases.
    I want to run a test kit in parallel. But at the same time I want to limit the threads so that I have only 3 test cases running in parallel at a time. How can i do this ?

    • @LearnTestAutomation
      @LearnTestAutomation  4 ปีที่แล้ว +1

      I think you can refer this to achieve the way you want to execute tests in parallel (source: stackoverflow.com/questions/49001409/run-x-number-of-test-case-per-batch-on-groovy-scipt-soapui)
      import com.google.common.collect.*;
      // Get a list of the test cases in the suite and partition them into batches of 3 using Google Guava
      def testCases = context.getTestSuite().getTestCaseList();
      def List testcasePartitions = Lists.partition(testCases, 3);
      // Loop through the partitions
      for (partition in testcasePartitions) {
      // Loop through the test cases in each partition
      for (testcase in partition) {
      if (!testcase.isDisabled()) {
      log.info("Running tests case " + testcase.getName());
      def properties = new com.eviware.soapui.support.types.StringToObjectMap ()
      testcase.run(properties, false)
      // Check the outcomes here if required.
      }
      }
      }