SAP-archive / ui5-automation-framework

End-to-end test framework for UI5 applications. It uses UI5 structure and renders simplicity and ease of use for UI5 Automation.
Apache License 2.0
24 stars 8 forks source link

UI5-AutomationFramework MAC execution issue #3

Closed Kronnork closed 6 years ago

Kronnork commented 6 years ago

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 ?

asifnavalur commented 6 years ago

can you share the url and the steps to reach upto step5?

Kronnork commented 6 years ago

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 /node_modules/ui5-automation-framework/UI5Example $ node /node_modules/ui5-automation-framework/protractor/bin/protractor conf.js

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?

asifnavalur commented 6 years ago

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

Kronnork commented 6 years ago

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?

Kronnork commented 6 years ago

Also suggest due to inconsistent recording behavior shall we move on to https://openui5.hana.ondemand.com/#/topic/ab134ef3932c4b42898c79c10341e8b5

Prabal4Lyf commented 6 years ago

@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

Kronnork commented 6 years ago

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

asifnavalur commented 6 years ago

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

asifnavalur commented 6 years ago

@Kronnork - You are invited to contribute in documenting if you think it makes sense

Kronnork commented 6 years ago

@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.