Introduction to Pester - Jakub Jareš (@nohwnd)
HTML-код
- Опубликовано: 15 сен 2024
- Jakub Jareš (@nohwnd) will be breaking the ice for us with Pester. You can expect a rundown of what Pester is and how to get started with it, so you can start automating the testing of your PowerShell code!
Sponsor Jakub and Pester: github.com/spo...
GitHub repo for code: github.com/noh...
Pester RUclips playlist: • Introduction to Pester...
GitHub Action to visualise Pester tests: github.com/mar...
Pester VSCode extension: marketplace.vi...
Hi , i am new in automation testing . And i have to work with pester . My scenario in which i have one CSV file . And i have 4 usecase to test . For first usecase i took first row of data from CSV file in one context section . For another usecase , now i need to pick second row of data from CSV file and i want to write in another new context block . Is this possible ? How can I do this if possible? Plz help .
Maybe another way to explain the -ParameterFilter is that
'Invoke-RestMethod'
Would usually be ran like: Invoke-RestMethod -Method 'Get' - URI 'http:\\whatever'
The Mock captures whatever was bound to those parameters and make them available in the 'should' assertion
$Method = 'Get'
$URI = 'http:\\whatever'