Ask a Question

support for react native developed mobile apps

ashwinpendyala
Occasional Contributor

support for react native developed mobile apps

We have requirement of automating the mobile app developed in react native platform(combination of react + Native). So is there any way to automate these apps using test complete.

 

Any one has using these kind of apps??

13 REPLIES 13
cunderw
Community Hero

Yes, we are currently working on building a framework for mobile apps written using react native. Once ejected and built, they become native apps, so you shouldn't have issues with automating against them. 

 

We did have to have use the PatchServices jar mentioned here though: https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/preparing/instrumenting-a...


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
ashwinpendyala
Occasional Contributor

@cunderw 

 

thanks for the reply. I have some clarifications regarding the topic.

 

Should Mobile App needs to be ejected and Built? Can you provide detailed information regarding this??

 

OR

 

Usually i instrument the apk files using Testcomplete IDE with default Debug Certificates. Is this referring the same??

 

 https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/preparing/instrumenting-a...

 

OR

 

So do we need to re-compile the Mobile App source code with Patch Services you were mentioning right??

 

I am pure QA and dont have knowledge of doing all these. Can Mobile App developers do these??

Referring to your post in the feature request post you logs look like you are trying to simulate actions on objects that are not visible on your screen.

 

If you can already see objects from your application in the object browser you shouldn't need to do anything else with your APK, you are already seeing the internals.

 

As for why your actions are failing, we will need a lot more info. Code examples, pictures of any mapping you have done, pictures of your object browser for the objects that your actions are failing on and the additional information of your errors in the log. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
ashwinpendyala
Occasional Contributor

@cunderw
Thanks for the info. I am also suprised with the behaviour. then why i cant able to access via spy?

any extra effort needs to be taken care by developer's?

I am not sure why you can't access with Object Spy. Can you provide a screenshot of the object browser for your application?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
ashwinpendyala
Occasional Contributor

@cunderw

Please find the attachments of the Object Browser for few screens & Logs

Login_Screen

Main_Screen

Log1.mht

 

You are saying that React Native App will finally converted to Native Apps and it should support. but when i contacted Customer Support, they replied that Testcomplete doesnot support React Native Framework. 

 

I am confused with that....!!!!!!!!!!!

 

With the same app, when tried in IOS mobile, i could identify and access the Username & Password fields but having issue with the Sign In button.

 

 

In your screenshots you can see that Test Complete is picking up the native android objects in your object browser, so there is support. Without more code examples I can't really tell you why you are having issues interacting with objects.

 

https://github.com/react-native-material-design/demo-app I even downloaded the apk from here to do a test and had no issues interacting with and playing back scripts. 

 

Mobile.Device("emulator-5554").Process("com.demoapp").RootLayout("").Layout("com.facebook.react.ReactRootView").View("com.facebook.react.views.drawer.ReactDrawerLayout").View("com.facebook.react.views.view.ReactViewGroup").View("com.facebook.react.views.view.ReactViewGroup").View("com.facebook.react.views.view.ReactViewGroup", 2).View("com.facebook.react.views.view.ReactViewGroup", 2).TextView("com.facebook.react.views.text.ReactTextView").Touch();

It's even picking up the same type of objects as shown in your object browser. Can you provide code examples? And properties of the first object it's failing on?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
ashwinpendyala
Occasional Contributor

@cunderw

 

Attaching the properties of the Username Text Feild. 

 

If Test complete works, it will be huge benefit and more reusable. Thanks for supporting..

What does the code that is failing look like?

 

Can you do a test and with the application running, use the full name of the text box and send keys to it without, reinstalling or launching the test? I'm thinking this might be a timing or mapping issue. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
cancel
Showing results for 
Search instead for 
Did you mean: