congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ImmutableProject$Builder.addAllVariables
Code IndexAdd Tabnine to your IDE (free)

How to use
addAllVariables
method
in
com.neotys.neoload.model.ImmutableProject$Builder

Best Java code snippets using com.neotys.neoload.model.ImmutableProject$Builder.addAllVariables (Showing top 3 results out of 315)

origin: com.neotys.neoload/neoload-project

/**
 * Sets or replaces all elements for {@link Project#getVariables() variables} list.
 * @param elements An iterable of variables elements
 * @return {@code this} builder for use in a chained invocation
 */
@CanIgnoreReturnValue 
@JsonProperty("variables")
@JsonIgnore
public final Project.Builder variables(Iterable<? extends Variable> elements) {
 this.variables = ImmutableList.builder();
 return addAllVariables(elements);
}
origin: com.neotys.neoload/loadrunner-reader

private void readScript(final ImmutableProject.Builder projectBuilder, final File projectFolder) {
  try {
    currentScriptFolder = projectFolder;
    eventListener.startScript(currentScriptFolder.getName());
    final ProjectFileReader projectFileReader = new ProjectFileReader(this, eventListener, projectFolder);
    final Map<String, String> actionsMap = projectFileReader.getAllActionsMap();
    if (actionsMap.isEmpty()) {
      LOGGER.error("No action in the map. Ignore the script.");
      return;
    }
    final ParameterFileReader parameterFileReader = new ParameterFileReader(this, projectFileReader, projectFolder);
    final ImmutableUserPath.Builder userPathBuilder = ImmutableUserPath.builder();
    final boolean hasAction = manageActions(projectFolder, projectFileReader, actionsMap, projectBuilder, userPathBuilder);
    final UserPath userPath = userPathBuilder.name(projectFileReader.getVirtualUserName()).build();
    if (!hasAction) {
      LOGGER.error("No Init / Actions / End. Ignore the script.");
      return;
    }
    projectBuilder.addAllVariables(parameterFileReader.getAllVariables()).addUserPaths(userPath);
  } finally {
    eventListener.endScript();
  }
}
origin: com.neotys.neoload/neoload-project

/**
 * Fill a builder with attribute values from the provided {@code Project} instance.
 * Regular attribute values will be replaced with those from the given instance.
 * Absent optional values will not replace present values.
 * Collection elements and entries will be added, not replaced.
 * @param instance The instance from which to copy values
 * @return {@code this} builder for use in a chained invocation
 */
@CanIgnoreReturnValue 
public final Project.Builder from(Project instance) {
 Objects.requireNonNull(instance, "instance");
 name(instance.getName());
 addAllSharedElements(instance.getSharedElements());
 addAllUserPaths(instance.getUserPaths());
 addAllServers(instance.getServers());
 addAllVariables(instance.getVariables());
 addAllPopulations(instance.getPopulations());
 addAllScenarios(instance.getScenarios());
 putAllProjectSettings(instance.getProjectSettings());
 return (Project.Builder) this;
}
com.neotys.neoload.modelImmutableProject$BuilderaddAllVariables

Javadoc

Adds elements to Project#getVariables() list.

Popular methods of ImmutableProject$Builder

  • addAllPopulations
    Adds elements to Project#getPopulations() list.
  • addAllScenarios
    Adds elements to Project#getScenarios() list.
  • addAllServers
    Adds elements to Project#getServers() list.
  • addAllSharedElements
    Adds elements to Project#getSharedElements() list.
  • addAllUserPaths
    Adds elements to Project#getUserPaths() list.
  • addSharedElements
    Adds elements to Project#getSharedElements() list.
  • build
    Builds a new ImmutableProject.
  • name
    Initializes the value for the Project#getName() attribute.If not set, this attribute will have a def
  • putAllProjectSettings
    Put all mappings from the specified map as entries to Project#getProjectSettings() map. Nulls are no
  • servers
    Sets or replaces all elements for Project#getServers() list.

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Option (scala)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now