Package com.xceptance.xlt.api.data

Examples of com.xceptance.xlt.api.data.GeneralDataProvider


   * and published to the jUDDI node.
   */
  @Override
  protected void execute() throws Exception
  {
    GeneralDataProvider data = GeneralDataProvider.getInstance();
    serviceName = data.getCountry(false);// retrieves random service name from country file
   
    //Name of the service in English.
    Name name = new Name();
    name.setLang("en");
    name.setValue(serviceName);

    //Description of the service in English.
    Description description = new Description();
    description.setLang("en");
    description.setValue(data.getText(1, false));

    //Access Point details.
    AccessPoint accessPoint = new AccessPoint();
    accessPoint.setUseType("endPoint");
    accessPoint.setValue("http://www." + StringUtils.deleteWhitespace(businessName) + ".com:8080/uddi/services/" + StringUtils.deleteWhitespace(serviceName) + "?wsdl");

    //Description of the Access Point, in English.
    Description accessPointDescription = new Description();
    accessPointDescription.setLang("en");
    accessPointDescription
        .setValue(data.getText(1, 3, false));

    //Pass binging info to binding template.
    BindingTemplate bindingTemplate = new BindingTemplate();
    bindingTemplate.setAccessPoint(accessPoint);
    bindingTemplate.getDescription().add(accessPointDescription);
View Full Code Here


    //Get an AuthToken.
    GetAuthenticationToken getAuthenticationToken = new GetAuthenticationToken();
    getAuthenticationToken.run();
   
    //Uses lists in config/data/default/
    GeneralDataProvider data = GeneralDataProvider.getInstance();
   
    //Pick a random number of services to publish under the business.
    int numberOfBusinessService = XltRandom.nextInt(getProperty("maxNumberOfBusinessServices", 1)) + 1;
   
    if(dataPool.getSize() <= 50)
    {
     
      //Pick a company name from a previously generated list of business names.
      String businessName = data.getCompany(false);
     
      //Register the business with services
      RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
          businessName, numberOfBusinessService);
     
      Thread.sleep(4000);
     
      //Add the returnThread.sleep(8000);ed BusinessEntity to the data pool.
      dataPool.add(registerBusinessFlow.getBusinessDetail().getBusinessEntity().get(0), 100);
       
    }
    else
    {
      //Get a business entity from the pool.
      BusinessEntity businessEntity= dataPool.getDataElement();
     
      if (businessEntity == null)
      {
        //Pick a company name from a previously generated list of business names.
        String businessName = data.getCompany(false);
       
        //Register the business with services
        RegisterBusinessFlow registerBusinessFlow = new RegisterBusinessFlow(getAuthenticationToken.getAuthenticationToken(),
            businessName, numberOfBusinessService);
       
View Full Code Here

TOP

Related Classes of com.xceptance.xlt.api.data.GeneralDataProvider

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.