Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.TestStepSecurityTestConfig


   */
  protected SecurityScanConfig addCheckToConfig()
  {
    testStep = testCase.getTestStepByName( testStepName );

    TestStepSecurityTestConfig testStepSecurityTest = config.addNewTestStepSecurityTest();
    testStepSecurityTest.setTestStepId( testStep.getId() );

    SecurityScanConfig securityCheckConfig = testStepSecurityTest.addNewTestStepSecurityScan();
    securityCheckConfig.setType( securityCheckType );
    securityCheckConfig.setName( securityCheckName );

    return securityCheckConfig;
  }
View Full Code Here


    List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
    if( !testStepSecurityTestList.isEmpty() )
    {
      for( int i = 0; i < testStepSecurityTestList.size(); i++ )
      {
        TestStepSecurityTestConfig testStepSecurityTest = testStepSecurityTestList.get( i );
        if( testStepSecurityTest.getTestStepId().equals( testStep.getId() ) )
        {
          newSecScan = buildSecurityScan( factory, newScanConfig, testStepSecurityTest, testStep );
          hasScans = true;
          break;
        }
      }
    }
    if( !hasScans )
    {
      TestStepSecurityTestConfig testStepSecurityTest = getConfig().addNewTestStepSecurityTest();
      testStepSecurityTest.setTestStepId( testStep.getId() );

      newSecScan = buildSecurityScan( factory, newScanConfig, testStepSecurityTest, testStep );
    }

    addSecurityScanToMapByTestStepId( testStep.getId(), newSecScan );
View Full Code Here

    List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
    if( !testStepSecurityTestList.isEmpty() )
    {
      for( int i = 0; i < testStepSecurityTestList.size(); i++ )
      {
        TestStepSecurityTestConfig testStepSecurityTest = testStepSecurityTestList.get( i );
        if( testStepSecurityTest.getTestStepId().equals( testStep.getId() ) )
        {
          List<SecurityScanConfig> securityScanList = testStepSecurityTest.getTestStepSecurityScanList();
          Iterator<SecurityScanConfig> secListIterator = securityScanList.iterator();
          while( secListIterator.hasNext() )
          {
            SecurityScanConfig current = secListIterator.next();
            if( current.getName().equals( securityScan.getName() ) )
View Full Code Here

    List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
    if( !testStepSecurityTestList.isEmpty() )
    {
      for( int i = 0; i < testStepSecurityTestList.size(); i++ )
      {
        TestStepSecurityTestConfig testStepSecurityTest = testStepSecurityTestList.get( i );
        if( testStepSecurityTest.getTestStepId().equals( testStep.getId() ) )
        {
          List<SecurityScanConfig> securityScanList = testStepSecurityTest.getTestStepSecurityScanList();
          Iterator<SecurityScanConfig> secListIterator = securityScanList.iterator();
          while( secListIterator.hasNext() )
          {
            SecurityScanConfig current = secListIterator.next();
            if( current.getName().equals( securityScan.getName() ) )
View Full Code Here

        boolean hasScans = false;
        List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
        if (!testStepSecurityTestList.isEmpty()) {
            for (int i = 0; i < testStepSecurityTestList.size(); i++) {
                TestStepSecurityTestConfig testStepSecurityTest = testStepSecurityTestList.get(i);
                if (testStepSecurityTest.getTestStepId().equals(testStep.getId())) {
                    newSecScan = buildSecurityScan(factory, newScanConfig, testStepSecurityTest, testStep);
                    hasScans = true;
                    break;
                }
            }
        }
        if (!hasScans) {
            TestStepSecurityTestConfig testStepSecurityTest = getConfig().addNewTestStepSecurityTest();
            testStepSecurityTest.setTestStepId(testStep.getId());

            newSecScan = buildSecurityScan(factory, newScanConfig, testStepSecurityTest, testStep);
        }

        addSecurityScanToMapByTestStepId(testStep.getId(), newSecScan);
View Full Code Here

        }

        List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
        if (!testStepSecurityTestList.isEmpty()) {
            for (int i = 0; i < testStepSecurityTestList.size(); i++) {
                TestStepSecurityTestConfig testStepSecurityTest = testStepSecurityTestList.get(i);
                if (testStepSecurityTest.getTestStepId().equals(testStep.getId())) {
                    List<SecurityScanConfig> securityScanList = testStepSecurityTest.getTestStepSecurityScanList();
                    Iterator<SecurityScanConfig> secListIterator = securityScanList.iterator();
                    while (secListIterator.hasNext()) {
                        SecurityScanConfig current = secListIterator.next();
                        if (current.getName().equals(securityScan.getName())) {
                            secListIterator.remove();
View Full Code Here

    public void removeSecurityScanWhenRemoveTestStep(TestStep testStep, SecurityScan securityScan) {
        List<TestStepSecurityTestConfig> testStepSecurityTestList = getConfig().getTestStepSecurityTestList();
        if (!testStepSecurityTestList.isEmpty()) {
            for (int i = 0; i < testStepSecurityTestList.size(); i++) {
                TestStepSecurityTestConfig testStepSecurityTest = testStepSecurityTestList.get(i);
                if (testStepSecurityTest.getTestStepId().equals(testStep.getId())) {
                    List<SecurityScanConfig> securityScanList = testStepSecurityTest.getTestStepSecurityScanList();
                    Iterator<SecurityScanConfig> secListIterator = securityScanList.iterator();
                    while (secListIterator.hasNext()) {
                        SecurityScanConfig current = secListIterator.next();
                        if (current.getName().equals(securityScan.getName())) {
                            secListIterator.remove();
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.TestStepSecurityTestConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.