-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
result not getting posted on RP #50
Comments
Hi, @DzmitryHumianiuk Hope you are doing well. |
@AmsterGet can assist here. |
Hi, @AmsterGet please help with this. |
Hi, @AmsterGet and@KatsiarynaTatarynovich Please help on this. |
Hi @vaibhavshukl12 ! |
@AmsterGet yes I cloned the same example also but no result is posting. |
Any other logs from the console? |
No @AmsterGet as my script is passing I am not getting any failed log. var ReportportalAgent = require('@reportportal/agent-js-jasmine');` var agent = new ReportportalAgent({
// client settings
token: "00000000-0000-0000-0000-000000000000",
endpoint: "http://your.reportportal.server/api/v1",
launch: "LAUNCH_NAME",
project: "PROJECT_NAME",
// agent settings
attachPicturesToLogs: true,
attributes: [
{
"key": "YourKey",
"value": "YourValue"
},
{
"value": "YourValue"
},
]
}); 3- added this in onPrepare- jasmine.addReporter(agent.getJasmineReporter()); agent.getExitPromise().then(() => {
console.log('finish work');
}) Anything else i need to do |
Hi @AmsterGet, Please help on this. |
Hi @AmsterGet below is version: |
Hi @KatsiarynaTatarynovich "devDependencies": {
"@reportportal/agent-js-jasmine": "^5.0.0",
"jasmine": "^3.2.0"
} |
@vaibhavshukl12 two minutes ago I ran the example from our examples repository and the results are displayed in RP. Are you sure you entered the data correctly? Please send me an endpoint value. And recheck the token value. |
Thanks, @KatsiarynaTatarynovich for your support it's working now, I created a new project then it's working fine. |
Hi @KatsiarynaTatarynovich it's working with one it block in describe but when I am putting multiple it in single describe then issue is coming launch is also not stopping and it is coming inside it. |
Hi, @KatsiarynaTatarynovich Hope you doing well. |
Hi @KatsiarynaTatarynovich and @AmsterGet I try to run in debug mode also. Start launch 3btx73gkelh38s3 DevTools listening on ws://127.0.0.1:57700/devtools/browser/b440497e-8d13-4a04-b93a-69bd512d1a2c Flipkart Launch Demo Script Executed 2 of 2 specs SUCCESS in 0.359 sec. Please help on this . |
@vaibhavshukl12 Put afterLaunch() {
return agent.getExitPromise();
} |
@KatsiarynaTatarynovich I already put this method but still launch is not finishing. var q = require('./node_modules/q');
const ReportportalAgent = require('@reportportal/agent-js-jasmine');
const agent = new ReportportalAgent({
// client settings
token: "",
endpoint: "",
launch: "",
project: "",
debug: true,
attachPicturesToLogs: true,
});
exports.config = {
allScriptsTimeout: 160000,
getPageTimeout: 190000,
specs: [
'specs/demo_spec.js',
],
capabilities: {
browserName : 'chrome',
marionette : true,
acceptInsecureCerts : true
},
directConnect: true,
framework: 'jasmine2',
onPrepare: function () {
jasmine.getEnv().addReporter(agent.getJasmineReporter());
},
afterLaunch() {
return agent.getExitPromise();
}
}; |
@vaibhavshukl12 Please try this configuration multiTread |
@KatsiarynaTatarynovich I tried both, but the issue persists. |
@vaibhavshukl12 You can try this solution #82 Hope it will help you |
@KatsiarynaTatarynovich i tried the above solution but still launch is in running mode only. |
Is problem still actual ? @vaibhavshukl12 |
@AmsterGet ^? |
Hello @vaibhavshukl12 ! |
my config.js
const ReportportalAgent = require('agent-js-jasmine'); const agent = new ReportportalAgent({ token: "8736a402-8d39-46ac-99d9-*", endpoint: "http://.com", launch: "protractortest", project: "unified-qa", attachPicturesToLogs: false, }); exports.config = { capabilities: { 'browserName': 'chrome' }, seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['rpspec.js'], onPrepare: ()=> { jasmine.getEnv().addReporter(agent.getJasmineReporter()); }, afterLaunch:() => { return agent.getExitPromise(); } };
and my spec file
describe('second spec', function() { // Test in Jasmine it('second specopening home page', function() { browser.get('https://angular.io/') expect('true').toBe('true'); console.log('--------------------all----------') }); });
protractor log:
`D:\AutomationPOC\proptractor\protractor_rp> protractor .\config.js
(node:5680) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[00:13:07] I/launcher - Running 1 instances of WebDriver
[00:13:07] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
Started
--------------------all----------.
1 spec, 0 failures
Finished in 8.947 seconds
[00:13:18] I/launcher - 0 instance(s) of WebDriver still running
[00:13:18] I/launcher - chrome reportportal/reportportal#1 passed
PS D:\AutomationPOC\proptractor\protractor_rp>`
The text was updated successfully, but these errors were encountered: