Closed Kronnork closed 6 years ago
can you share the url and the steps to reach upto step5?
Hi asifnavalur,
The issue comes when we execute the tests in runtime.
Steps for installing runtime is -
a. Created a directory as recommended
b. Goto the Directory and ran the following command -
npm install --save https://github.com/SAP/ui5-automation-framework
It takes around 20 min to install. Shall we work on optimisations. Are you also covering postinstall ?
Installation was successful but ERROR: Can't find config file: .jshintrc was there.
c. Executing the command for test on runtime
cd
Due to local development we will not be able to share the url. Since we are evaluating the test frameworks, we also see that UI elements are not getting focussed. This needs to be fixed even if this is an expected or already anticipated issue.
Can you suggest the time frame for the fix?
As u mentioned tha you are getting this error- " sap is not defined " Pls open the developer console and type sap.ui - does it return an object or error? Regards, Asif
Hi Asif,
Thanks for the response. it does return the object.
Does the error during installation
ERROR: Can't find config file: .jshintrc
anything to do with the same?
Also suggest due to inconsistent recording behavior shall we move on to https://openui5.hana.ondemand.com/#/topic/ab134ef3932c4b42898c79c10341e8b5
@Kronnork If I understand the issue correctly, then there might be a configuration issue with the authentication part of the conf.js I also faced the same issue when i did not correctly define the > formType in the auth section as follows:
auth: {
formType:'plain',
username: 'Testuser',
password: 'xxxxxxx'
},
The above code will trigger the issue since login pages may not be strictly ui5 pages or fiori based.
Now the formtype can be deduced from the list defined in https://github.com/SAP/ui5-automation-framework/blob/master/protractor/built/authConfig.js
or you can define it by adding to the authConfig,js the id elements for username, password and the logon button.
so mostly if you are using scp then it will be closely be the following:
auth: {
formType:'sapcloud-form',
username: 'Testuser',
password: 'xxxxxxx'
},
Kindly confirm to deduce next steps.
Thanks Prabal
Solves the issue. Awesome sauce.. Best would be to have it documented... 👍 Also can we do something about the instability of focusing on the elements or is there a fix already.. ?
Thanks
Thanks Prabal for figuring this out. Hope the issue is solved and hence closing. instability of focusing on the element - I propose you to create a seperate issue Regards, Asif
@Kronnork - You are invited to contribute in documenting if you think it makes sense
@asifnavalur
Kindly share your development environment setup guide as the readme only has usage guide.
I want to check if the instability case also.
Add the issue of instability to your known issues since this requires investment. README needs to be updated.
I am getting the following issue while executing the recorded tests :
script step5:assertion on sap.m.Table
Can we point to the specific runtime library that is missing here ?