Как запустить сценарий jmeter (файл .jmx) из локального проекта Maven?

Используйте переменную $ progressPreference. Он должен иметь значение «Продолжить» по умолчанию, если вы не отредактировали его в другом месте, что говорит Powershell о отображении индикатора выполнения. Поскольку вы упомянули, что у вас есть собственные пользовательские индикаторы прогресса, я бы сбросил его сразу же после выполнения командлета. Например:

$progressPreference = 'silentlyContinue'    # Subsequent calls do not display UI.
Invoke-WebRequest ...
$progressPreference = 'Continue'            # Subsequent calls do display UI.
Write-Progress ...

Дополнительная информация о переменных предпочтений в about_preference_variables . Вот запись для $ ProgressPreference:

$ProgressPreference
-------------------
Determines how Windows PowerShell responds to progress updates 
        generated by a script, cmdlet or provider, such as the progress bars
        generated by the Write-Progress cmdlet. The Write-Progress cmdlet 
        creates progress bars that depict the status of a command.

        Valid values:
          Stop:               Does not display the progress bar. Instead,
                                it displays an error message and stops executing.

          Inquire:            Does not display the progress bar. Prompts
                                for permission to continue. If you reply
                                with Y or A, it displays the progress bar.

          Continue:           Displays the progress bar and continues with
          (Default)             execution.

          SilentlyContinue:   Executes the command, but does not display
                                the progress bar.

0
задан ROMANIA_engineer 13 March 2017 в 05:32
поделиться