cancel
Showing results for 
Search instead for 
Did you mean: 

mobile app shows failed hardening security check up on doing action using test complete

SOLVED
Highlighted
Occasional Contributor

mobile app shows failed hardening security check up on doing action using test complete

Not able to install mobile app using test complete ...

IN our mobile application we need to fill form and submit order...when we fill form and submit form using test complete 

app getting error "failed hardening security check"

 

Kindly help to check.

 

Mobile using : Huawai honor

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: mobile app shows failed hardening security check up on doing action using test complete

Hi @vinodjaju, I see that you received a reply from our support engineers, let me copy it here:

 

>>

It seems that the cause of the issue is that your Android app uses some certificate which is required for the login process. When this Android app is being instrumented, the debug certificate overwrites yours.

Thus, you can solve the issue in the following ways:
1. You need to specify the developer certificate at the signing step in the Android Instrumentation wizard.
2. Build your Android app in IDE:
https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/preparing/instrumenting-a...

 

Those certificates should be from your Android app and they should be generated by the developers of that app in Android Studio.

<<


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

6 REPLIES 6
Highlighted
Community Leader

Re: mobile app shows failed hardening security check up on doing action using test complete

As tC is quite system intrusive, perhaps app detect intrusion in memory and reject due to securty check as the message was told to you ?

App must be set up properly for automation and secuirty controls must sometimes be reduced.

 

Un sourire et ça repart

Highlighted
Occasional Contributor

Re: mobile app shows failed hardening security check up on doing action using test complete

even not able to install app using test complete ... i am using below code to install apk .

 

Function LaunchPRAApp()

On Error Resume Next
LaunchPRAApp = True
'Call Mobile.SetCurrent("KIW-L22")
Set MObj = Mobile.Device
Set packManagerObj = MObj.PackageManager
Set packObj = packManagerObj.GetPackageFromAPK(GetEnvProperty("PRAAPKPath"))

Mobile.Device.PackageManager.RemovePackage(packObj)

if ( Not Mobile.Device.PackageManager.InstallPackage(packObj)) Then
Log.Error("Something went wrong while installing the application.")
LaunchPRAApp = False
Project.Variables.logarray = "Something went wrong while installing the application."
Exit Function
End If

Highlighted
Community Hero

Re: mobile app shows failed hardening security check up on doing action using test complete

Hi,

 

I have very little idea about what is the source for the "failed hardening security check" message, sorry for that.

But I would like to note that the use of the On Error Resume Next at the beginning of a function is highly not recommended practice as it hides all problems until unrecoverable crash occurs. And this crash might happen far far away from the line that failed initially. (Though far not sure that this will help with your exact problem.)

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Community Manager

Re: mobile app shows failed hardening security check up on doing action using test complete

Hi @vinodjaju, I see that you received a reply from our support engineers, let me copy it here:

 

>>

It seems that the cause of the issue is that your Android app uses some certificate which is required for the login process. When this Android app is being instrumented, the debug certificate overwrites yours.

Thus, you can solve the issue in the following ways:
1. You need to specify the developer certificate at the signing step in the Android Instrumentation wizard.
2. Build your Android app in IDE:
https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/preparing/instrumenting-a...

 

Those certificates should be from your Android app and they should be generated by the developers of that app in Android Studio.

<<


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

Highlighted
Occasional Contributor

Re: mobile app shows failed hardening security check up on doing action using test complete

Hi Team,

 

Yes , received solution from smarbear, but some internal project is going on now in our company, so application is not available to test until 24 Apr 2020. once ready will try to run and give my comments. thanks.

 

 

Highlighted
Community Manager

Re: mobile app shows failed hardening security check up on doing action using test complete

@vinodjaju great, we'll be waiting for an update from you then. Let me mark the Support's solution for now in this thread.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors