Adds parameter to current test or step (or fixture) if any. Takes no effect
if no test run at the moment.

@param name  the name of parameter.
@param value the value of parameter.
497041
public static <T> T parameter(final String name, final T value) {
        final Parameter parameter = createParameter(name, value);
        getLifecycle().updateTestCase(testResult -> testResult.getParameters().add(parameter));
        return value;
    }
978305
public static void parameterNotEmpty(final String name, final String value) {
        if (value != null && value.length() == 0) {
            raiseError(format("Parameter '%s' is expected to NOT be empty.", name));
        }
    }
1053370
public function add($name, $value = null)
    {
        $noName = false;
        if (null === $name) {
            $name = Parameter::guessParameterNameByValue($value);
            $noName = true;
        }

        if (isset($this->parameters[strtoupper($name)])) {
            $this->parameters[strtoupper($name)]->addValue($value);
        } else {
            $param = new Parameter($this->root, $name, $value);
            $param->noName = $noName;
            $this->parameters[$param->name] = $param;
        }
    }
15716
public Hop withParameter(String name, Object value) {

		Assert.hasText(name, "Name must not be null or empty!");

		HashMap<String, Object> parameters = new HashMap<>(this.parameters);
		parameters.put(name, value);

		return new Hop(this.rel, parameters, this.headers);
	}
893195
public void add(final String name, final String value) {
    ArrayList<String> values = super.get(name);
    if (values == null) {
      values = new ArrayList<String>(1);  // Often there's only 1 value.
      super.put(name, values);
    }
    values.add(value);
  }
190282
public Options param(String name, String value) {
		options.put(name, value);
		return this;
	}
304106
public void setParameter(final String name, final String value) {
		String[] currentValue = (String[]) parameters.get(name);

		if (currentValue == null) {
			currentValue = new String[]{value};
		} else {
			// convert the current values into a new array..
			String[] newValues = new String[currentValue.length + 1];
			System.arraycopy(currentValue, 0, newValues, 0, currentValue.length);
			newValues[newValues.length - 1] = value;
			currentValue = newValues;
		}

		parameters.put(name, currentValue);
	}
1280224
public void setVariable(String name, Object value) {
        if (variables == null)
            variables = new LinkedHashMap();
        variables.put(name, value);
    }
87802
public Parameters setValue(@NonNull String name, Object value) {
        if (name == null) { throw new IllegalArgumentException("name cannot be null."); }
        if (readonly) { throw new IllegalStateException("Parameters is readonly mode."); }
        map.put(name, value);
        return this;
    }
510329
public function offsetSet($name, $value)
    {
        if (is_int($name)) {
            parent::offsetSet($name, $value);
            // @codeCoverageIgnoreStart
            // This will never be reached, because an exception is always
            // thrown.
            return;
            // @codeCoverageIgnoreEnd
        }

        $param = new Parameter($this->root, $name, $value);
        $this->parameters[$param->name] = $param;
    }
827428
public void addParameter(String name, RPCParameter parameter) {
        for (String subscript : parameter) {
            addParameter(name, subscript, parameter.get(subscript));
        }
    }
567423
public ParamBuilder put(String name, Object value) {
        params.put(name, value);
        return this;
    }
1168060
public void addParamPost(String name, String value) {
        addParam(name, value, NameValuePair.TYPE_POST_DATA);
    }
1045081
public void add(String name, String value) {
        if (value == null)
            return;

        HttpField field = new HttpField(name, value);
        add(field);
    }
218828
public void addParameter(String name, Object value) {
        String subscript = "";
        
        if (name.contains("(")) {
            String[] pcs = name.split("\\(", 2);
            name = pcs[0];
            subscript = pcs[1];
            
            if (subscript.endsWith(")")) {
                subscript = subscript.substring(0, subscript.length() - 1);
            }
        }
        
        addParameter(name, subscript, value);
    }
444255
public function setFormParameter(string $name, string $value): void
    {
        parent::setFormParameter($name, $value);
    }
345222
public void add(String name, V value) {
        List<V> lo = get(name);
        if (lo == null) {
            lo = new ArrayList<>();
        }
        lo.add(value);
        super.put(name, lo);
    }