bug reporting time machine for angularjs

17
BUG REPORTING TIME MACHINE FOR ANGULARJS Vienna AngularJS | 2014-11-04 | Josef Trauner – [email protected]

Upload: usersnap

Post on 05-Jul-2015

487 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Bug Reporting Time Machine for AngularJS

BUG REPORTING TIME MACHINE FOR ANGULARJS

Vienna AngularJS | 2014-11-04 | Josef Trauner – [email protected]

Page 2: Bug Reporting Time Machine for AngularJS

What is Usersnap?Automatically attach a Screenshot to every bug report?

Page 3: Bug Reporting Time Machine for AngularJS

The solution

Directly In-App/In-Site Bug reporting where the bug occurs.

Page 4: Bug Reporting Time Machine for AngularJS

USERSNAP DASHBOARD

WRITTEN IN ANGULARJS

Page 5: Bug Reporting Time Machine for AngularJS

Usersnap Dashboard

• Why Angular?• old Codebase:

– Combination of jQuery– jQuery plugins– Grown code structure– „no“ Architecture– methods were simply added

Page 6: Bug Reporting Time Machine for AngularJS

Usersnap Dashboard

• UI was ugly:

Page 7: Bug Reporting Time Machine for AngularJS

Usersnap Dashboard

• What we are using:– angular-ui/ui-router– ngbp/ngbp (ng-boilerplate)– UI/CSS: Boostrap (less)– Some jQuery Plugins (wrapped into directives)

Page 8: Bug Reporting Time Machine for AngularJS

BUT THERE IS STILL SOMETHING MISSING

USERSNAP CONSOLE RECORDER

Page 9: Bug Reporting Time Machine for AngularJS

Console Recorder

• aka. Time Machine• A screenshot is great + contains a lot of

information• Mostly happens in complex applications• What happens if:

– Ajax call failed– JavaScript errors happen– User experiences only a wrong UI

Page 10: Bug Reporting Time Machine for AngularJS

• Now you get super power• Record all console log/warn/error• XHR Requests

Page 11: Bug Reporting Time Machine for AngularJS

Same view as you have it in your browser

Page 12: Bug Reporting Time Machine for AngularJS

DEMO TIME

QUICK EXAMPLE HOW IT WORKS

Page 13: Bug Reporting Time Machine for AngularJS

Usersnap + Angular

• Example: Without Angular• Angular + Usersnap

– Out of the box: leads to wrong logging!– Use our AngularJS wrapper

• https://github.com/usersnap/public/

Page 14: Bug Reporting Time Machine for AngularJS

DEMO TIME 2

CONSOLE RECORDER + ANGULARJS

Page 15: Bug Reporting Time Machine for AngularJS

Summary/Limitations

• Benefits during development– Non Tech savy users can report bugs– Way easier to reproduce issues

• Limitations:– Usersnap will be loaded async

Page 16: Bug Reporting Time Machine for AngularJS

QUESTIONS

I TRY TO ANSWER EVERYTHING ;-)

Page 17: Bug Reporting Time Machine for AngularJS

JOSEF TRAUNER

@josef_trauner

CO – Founder / Product

[email protected]

Image credits: photopin.com