How can i show the test steps in allure report for protractorTest steps are not displaying as it displays for java language. Even the allure report official documentation does not show any code snippet for displaying the test steps of a test case in a allure reportNo any proper code implementation i guess for test steps to be displayed in allure report. I am using Jasmine framework with async await (promises disabled) with Javascript language. Kindly help, If anyone know about this?
How test steps could be displayed for a test case in allure report for jasmine protractor framework
942 Views Asked by Manp At
2
There are 2 best solutions below
0
DopplerDan
On
There is a work around:
declare const allure:any;
This pulls the allure reporter constant. Yes, the 'any' makes me feel dirty but this works.
allure.createStep('Step name', () => { fn })();
async allure.createStep('Step name', async () => { fn })();
Creates a self executing function to create a step in the report by that name and executes the function fn;
As a sidebar, you also have these functions:
allure.addArgument('key','value');
allure.feature('Feature Name');
allure.epic('Epic Name');
allure.story('Story Name');
allure.description('Test (It) description');
allure.createAttachment('name', dataObj, type);
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in PROTRACTOR
- [Protractor]: session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 121.0.6167.139
- How to run auto-tests via specific webdriver that I will put in repo instead of webdriver that generated automatically by protractor?
- Running protractor e2e with custom build and serve configuration
- Angular E2E Protractor testing : error to join API from testing session
- Protractor: Webdriver-manager update downloads an incompatible version of chromedriver
- webdriver manager update only to chrome driver version 114
- My chrome version got updated automatically to 115 version and when i run webdriver-manager update command why its downloading 114 version of chrome?
- Vscode keep running tests or run on save
- Access AngularJS's scope in Playwright (migration from protractor)?
- Difference b/w running test cases in angular frameworks vs the compiler default?
- Is there a way to get the jasmine report without actual execute cases?
- Jenkins not running a few protractor tests
- Can't run protractor tests with selenium hub 4
- How to capture scenario result in cypress-cucumber-preprocessor?
- Protractor:Chrome driver download failed because api blocked by my company
Related Questions in ALLURE
- Problem with generating allure report with cucumber and junit5
- com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "testCaseName" (class io.qameta.allure.model.TestResult)
- Allure report stuck with a loading spinner after launching index.html from generated report
- Cypress, Jenkins - allure-results folder missing at the end of execution
- allure-behave : The term 'allure-behave' is not recognized as the name of a cmdlet, function, script file, or operable program
- How can i select a specific test session in Allure history?
- how to have the allure report github pages for each environment?
- js net::ERR_ABORTED 404 (Not Found)
- How can I merge two different Allure results beloging to two different stages in a Jenkins Declarative Pipeline
- Allure Report with Playwright on GitHub Pages Missing Test History
- AllureLifecycle error in a multi-threaded Kotlin test
- Allure reports not able to get feature name or add screenshot
- How to generate a readable Allure Report?
- Allure Reports - Fail in middle steps scenario doesn't stop test
- Empty xUnit Allure report
Related Questions in JASMINE2.0
- How to write unit test case of ag agrid cellRenderer with return value in angular
- How can I test that a function was called inside an if statement in jasmine-karma
- How to pass global variable into one test suite that has 3 test cases
- Jasmine - JavaScript: How to check array response by validating one of the array returned data?
- Stub out component private method
- Jasmine , Karma - Ignore ids from result object while comparison using toEqual
- Failed: Invalid provider for the NgModule 'DynamicTestModule' - only instances of Provider and Type are allowed, got: [[object Object]?]
- protractor-jasmine2-screenshot-reporter blank screenshot
- Angular karma can't capture browser after updating angular 9 to 10
- Protractor exited with error code 100 when run config.js
- How to test Observable subscribe callback using jasmine?
- AngularJS - Jasmine - Cannot test Service in Controller callback function
- Protractor POM method is not recognizing
- Function to left rotate a given array item n position to left - JavaScript
- Webpack directory appended at error after migrating to Angular9
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Allure adapter for Protractor Jasmine doesn't have any feature as of now to record the test steps. Most of the Jasmine and Allure users like us are looking at this as a limitation.
As a workaround I'm using both these frameworks together with a different analogy. As per standard every
describeblock in Jasmine is a test suite and everyitblock is a test case. So in order to record the test steps I treat everydescribeblock as a test case and everyitblock as test step. That way we can record every step as well as its execution details.Hope this helps you. Let me know if you need more elaboration.
Regards,
Sid