Adding Events
Events are used to provide insights into how testers use your apps. They can help you keep track of when a tester reaches key points in your app, such as visiting the in-app store.
Syntax
To add an event to your timeline:
TestFairy.addEvent("<event name>");
Code Example
public class MyActivity extends Activity { private void onPurchaseComplete() { TestFairy.addEvent("Purchase OK"); } }
Syntax
To add an event to your timeline:
[TestFairy addEvent:@"<event name>"];
Code Example
@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [TestFairy addEvent:@"Purchase OK"]; //... } // ... @nd
Syntax
To add an event to your timeline:
TestFairy.addEvent("<event name>");
Code Example
const TestFairy = require('react-native-testfairy'); var MyComponent = React.createClass({ componentDidMount: function() { TestFairy.addEvent("Purchase OK"); } });
Last updated on 2023-05-23