Skip to content
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

supporting windows attempt #16

Closed
wants to merge 3 commits into from
Closed

supporting windows attempt #16

wants to merge 3 commits into from

Conversation

dreuxl
Copy link
Contributor

@dreuxl dreuxl commented Dec 12, 2017

trying to address #13

using this pkg https://www.npmjs.com/package/cross-spawn which seems to solve windows support.

I m a bit blind in that one, as I have no windows machine to test it 🤞

@FrederikCampagne
Copy link

FrederikCampagne commented Jan 3, 2018

I tried using crossSpawn. Just a note ---> crossSpawn returns a ChildProcess, so I believe you can leave you the child in child.crossSpawn(command, args). I'm running into other issues though. The retries actually start to run now, however they never exit the test run. I don't know how this can help as you don't have a windows machine to test it on. I will give it another go.

@stemkar123
Copy link

Hi,
I was facing same issue "Exit with Error code 199". And I have installed the crossSpawn as well & done the required changes in json file & retry file. Now I am getting below error:

[17:39:46] E/launcher - Error: TypeError: value.apply is not a function
at Promise.apply (D:\Reposirtory\test\ui\node_modules\q\q.js:1185:26)
at Promise.promise.promiseDispatch (D:\Reposirtory\test\ui\node_modules\q\q.js:808:41)
at D:\Reposirtory\test\ui\node_modules\q\q.js:1411:14
at runSingle (D:\Reposirtory\test\ui\node_modules\q\q.js:137:13)
at flush (D:\Reposirtory\test\ui\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
[17:39:46] E/launcher - Process exited with error code 1

@schwepmo
Copy link

Hey,
is there any progress being made for implementing windows support?

@samuelvinay91
Copy link

When can we get Windows support please

@samuelvinay91
Copy link

@dreuxl we are really waiting for your fix for windows.Is there any ETA for this

@dreuxl
Copy link
Contributor Author

dreuxl commented Sep 4, 2018

No ETA at the moment :(

@samuelvinay91
Copy link

My current project is dependent on this module very badly..If I could help you in any way getting this I am happy to help @dreuxl

@tbowmo
Copy link

tbowmo commented Oct 8, 2018

Tried patching with (almost) the proposed in this PR, and I got it to retry 3 times on windows, before finally bailing out with a failure..

System info:
Node : 8.12.0
npm: 6.4.1
yarn: 1.3.2
crossSpawn : 6.0.5

Only change made differently, than done in this PR is that I changed line 148 here to

            var child = crossSpawn(command,args);

@dreuxl
Copy link
Contributor Author

dreuxl commented Oct 9, 2018

I ll try that change and see.
Thanks @tbowmo

@samuelvinay91
Copy link

samuelvinay91 commented Oct 9, 2018

@tbowmo @dreuxl - I have retried the change given with my tests in windows .I could see that the retry is running ,but all the tests which include passed tests are also running again in next attempt

-----Dashboard spec.js------------
it('should able to Delete Dashboard', function () {
commonlib.DeleteDashboard('Automated'); ------------------this will run again even if it is passed at
first attempt
});
it('should able to Create a Dashlet of Chart type Area', function () {
commonlib.WaitForPageLoad();
//Refer the PO for complete Objects
commonlib.CreateDashlet('Finance Reports', 'Accts. Payable- Unpaid Bills', 'Basic Charts',
'Area', 'Bill Summary', 'Vendor Name', 'Sum', 'Bill Summary', 'Total Bill Amount');
});

@tbowmo
Copy link

tbowmo commented Oct 9, 2018

@mechatrix

Did you turn on sharding? If not, then it runs all tests again.. (as per the readme file)

@tbowmo
Copy link

tbowmo commented Oct 9, 2018

@dreuxl

Also note that I used version 6.0.5 of cross-spawn, and not 5.0.0, as you tried in the original attempt

@samuelvinay91
Copy link

@mechatrix

Did you turn on sharding? If not, then it runs all tests again.. (as per the readme file)

Yeah.You mean this shardTestFiles: true property right??

@tbowmo
Copy link

tbowmo commented Oct 10, 2018

yup, that's the one.. and bump the "maxInstances" up a bit

capabilities: {
        browserName: "chrome",
        shardTestFiles: true,
        maxInstances: 12,
     .....
}

@@ -142,7 +144,8 @@ function spawn(command, args) {
debug('Command', command, args);
return function() {
return Q.Promise(function() {
var child = childProcess.spawn(command, args);
// var child = childProcess.crossSpawn(command, args);
var child = child.crossSpawn(command, args);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running this gives me Error: TypeError: Cannot read property 'crossSpawn' of undefined

Should this be crossSpawn(command, args); instead of child.crossSpawn(command, args)

@Enigmaderockz
Copy link

@mechatrix
Did you turn on sharding? If not, then it runs all tests again.. (as per the readme file)

Yeah.You mean this shardTestFiles: true property right??

Did it fix the issue? I am still facing the issue with running all the test cases again

@dreuxl
Copy link
Contributor Author

dreuxl commented Dec 5, 2020

closed in favor of #84

@dreuxl dreuxl closed this Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants