The sea a laugh, mobile application of crash reason I found! --Remember the latest digital test "Nebula test" use Raiders

Source: Internet
Author: User

The sea a laugh, mobile application of crash reason I found!

-- the latest digital test "Nebula Test" use Raiders

The world is progressing so fast, a lot of fresh ideas abound, so we start a business, we do the coolest mobile applications, to do the most bombing application promotion. No international friends, only we accommodating greater China 1.4 billion people, smart phone users are now more than 500 million people, and continue to grow in the wild! It is said that by January 2015, only our major app store apps in China have accumulated more than 4 million apps. It feels like we're just as good as the spring of the IT genius has arrived! Based on our brains and strength, from a variety of public face app app to stand out that is inevitable! We must be the last team to laugh!

But lately our surging ideals have almost been shattered by reality: We have exhausted the application of painstaking development, exquisite design ideas, incredibly, the flash back, collapse and other seemingly low-level errors stuck in the throat! The less money we have in the bank card, the more we are hurting.

Although we are prepared to: Crash is normal, 62% of the application has such a problem, Bala,bala ... But we also know that if crash occurs on the first boot, 21% of the users will be uninstalled immediately, crash in use, 70% of the users will give the application a bad rating, and then uninstall. Does our great ideals and feelings really have to stop at the cruel reality? Do we deserve to raise our hands and surrender? No,no,no, Super invincible development of the glorious title of the Siege Lion Neo I do not allow this! What I'm going to do is: investigate where the bug is hiding, then pull it out hacked and shoot it, then join the team and head up to the app's top download leaderboard! But does the world have a satisfying software testing tool that can quickly help us directly reproduce the details of the execution logic path of the crash moment? We look around the world at home and abroad in the Test tool library, with peers to inquire.

I pretended to be calm and anxious to discuss my business plan with my friends the day before yesterday when the wind was raining heavily on the mysterious night, and it was like God's help to a website: Nebula testing. The site seems to be just online soon, several modules are in the expectation, the URL is a bit strange: Www.teststars.cc,Slogan huge and eye-catching: "Nebula testing to create a new journey of digital testing." What Rice? What is "digital testing"?! "Bidirectional traceability of code and test Cases", "digitizing and visualizing the test process", looks like a bull's-fork! I, as a more bull, super, omnipotent it master, need to understand and approval. It's the latest information, I do not know first, too abnormal! However, fortunately they do not seem to be the most formal on-line, calm my proud little flame.

A glimpse at a glance, see free Download Personal Premium Edition, Haha, very much I mean! can be downloaded for free! It has a few lines on the edge of the small description (advised June take a magnifying glass): "To achieve the software testing process and results of full digital recording and analysis, rapid crash capture and code execution path analysis." My heart steeds! Immediately open, download the page information is quite full: the use of instructions, deployment instructions, video what, and quite full. Quick Registration, open immediately! Anxious my urgency, God help me also!

Thank God for my hand! Really do not need to have, a use surprise day! This free Dongdong function is too powerful, it not only at the system level to do some defects on-site data collection, but also can go deep into the code inside, very direct positioning problems!! All at once we-crash the last 50 logical blocks, conditions, branches, etc. of our fatal wound to find out. It's shocking to me! The amazing thing is that it really does support the traceability of the test case to the code execution logic, which means that it replays the corresponding code logic for the entire run of a test case. It's a super Panorama debug artifact! In addition, brothers, the point is: it is more powerful than debug: Debug requires a single step, usually only show the current state and not a good record of historical operation data, the star test of this artifact is the complete debug chain of Debug complete display!

Oh, God! It's too strong!! I have heaven help Ah, Ji people own the celestial Sky Ah!! Our project is looking for the mercy of God to open another window! In order to express my excitement, but also in order to sincerely thank this artifact, I, a super, very smart research and development siege Lion must do a strategy, to share with you, to show thanks and respect! Good stickers not sink Ah!

(TIPS: Because of our great application temporarily inconvenient to open, I simply use an open source program to give you a brief lifting chestnuts, it comes from the network on the mobile version of the code)

I have implanted a flaw in its code internally, as follows:

What to modify:

Src/com/kaixin/android/activity/checkinactivity.java

Before modification:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/63/wKiom1V6jgzQ8homAAL8TC7U-3g788.jpg "title=" 111. PNG "alt=" wkiom1v6jgzq8homaal8tc7u-3g788.jpg "/>

After modification:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/5F/wKioL1V6j8yi4bvNAANgn12r-ak299.jpg "title=" Modified. png "alt=" wkiol1v6j8yi4bvnaangn12r-ak299.jpg "/>

As we all know, the modification of the source code is equivalent to the introduction of a cross-border access defects, below we look at this god-like digital testing tools, how to assume that the location and cause of the defect is not known, the direct capture and analysis of the bug.

The first step: through the tool to compile the implant defect program, install into the phone, open the oscilloscope, monitor the operation.

Step Two: after entering the home screen, click on the Red feather button in the lower left corner, pop up an arc menu, click the top-Right position button, the program crashes. Then stop the TT oscilloscope collection and go back to the TT use case-code snapshot view.

Step Three: to view the last 50 blocks of errors, click the last piece to execute:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/5F/wKioL1V6j9iCXVkVAAKDYsofD68886.jpg "title=" 333. PNG "alt=" wkiol1v6j9icxvkvaakdysofd68886.jpg "/>

Analysis: return The statement usually does not cause the program to crash, because it does not have any calculation of the exception (this statement actually does not actually run, asked under the Nebula 1th Technical support, given the explanation is because the previous program out of the exception, TT currently some of the information and mechanism of track running track will think that return last run, Future releases will be fixed for this issue). And the second-click Countdown is displayed:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/5F/wKioL1V6j-jDjZp-AAKa0-jgNyw350.jpg "title=" 444 analysis one. png "alt=" wkiol1v6j-jdjzp-aaka0-jgnyw350.jpg "/>

This is a hidden block and does not cause the program to crash. Click on the third-lowest block:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/63/wKiom1V6jlDCJJZCAAKisW_8U5M353.jpg "title=" Analysis of 2.png "alt=" Wkiom1v6jldcjjzcaakisw_8u5m353.jpg "/>

This is a hidden block and does not cause a program error. Click on the bottom fourth block:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/63/wKiom1V6jnGjYS5ZAALqnHRpPCk020.jpg "title=" Analysis of 4.png "alt=" Wkiom1v6jngjys5zaalqnhrppck020.jpg "/>

There may be a problem at this point because the normal block 664 is bound to execute. Click on the bottom fifth block:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/5F/wKioL1V6kCWiKKWgAALd3g8aET8002.jpg "title=" Analysis of 5.png "alt=" Wkiol1v6kcwikkwgaald3g8aet8002.jpg "/>

So the error may be this sentence:

result= MKXApplication.mMyLocationResults.get (position);

Analysis: We look at this code carefully, we can find that in this page position corresponding to the Mkxapplication.mmylocationresults interface position-1 location, to find the error.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/63/wKiom1V6jo_joyCcAAdEyNZbw8Q685.jpg "title=" Analysis of 6.png "alt=" Wkiom1v6jo_joyccaadeynzbw8q685.jpg "/>

Then we look at the last 50 conditional information, the last condition can be clearly seen, the error position of the judgment statement run the result is true, indicating that the defect occurred at the last minute entered the condition, and the condition inside the code is what we in the crash Block analysis results:

Result =mkxapplication.mmylocationresults.get (position);

Conclusion: The whole analysis of the artifact on the star test is accurate.

Nothing else to say, anyway, after my actual use, artifact has more surprising performance, I am still learning slowly, we can use it together, we slowly experience. The nebula testing site has a lot of usage guides that you can download to see. Good things, always need to go to the top, we top, more people, their team is more confident and ability to do more things, we lions do not want such a good team because no money scattered, tools have no way to upgrade and maintenance, although the artifact has been very strong. Brothers, care, you can imagine such a complex, powerful artifact development is how difficult! Talk to their "Nebula 1th customer Service" and they've been on for three years! It's so awe-impressed! Brothers, we must support!!! Because, even the foreign first-class software testing tools in front of them also weak explosion!!

I was so excited that I had to calm down my little heart of excitement. Their website:www.teststars.cc, according to my experience, the flow up, the amount of registration up, the use of the amount up, their opportunity came. We can always enjoy this great, free gift! Once again to their talented research and development team to extend the highest salute!

PS : When we have the money, we have to use their enterprise version to try, it seems that more fascinating Ah!

Strategy Writer: A genius, the wall of the super research and Development siege Lion: NEO


The sea a laugh, mobile application of crash reason I found! --Remember the latest digital test "Nebula test" use Raiders

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.