Skip to content

Instantly share code, notes, and snippets.

Avatar
🏔️
Working from home, wishing to be in mountains

Purushottam Pawar iamporus

🏔️
Working from home, wishing to be in mountains
  • Pune, India
View GitHub Profile
@iamporus
iamporus / Snippet.java
Last active Aug 5, 2020
Very dirty and brief representation of actual source code. Here I'm creating multiple threads depending upon number of connected devices and creating respective AppiumDriver instances inside them to execute tests parallely.
View Snippet.java
package com.mmt.autoqa.core;
import com.mmt.autoqa.dataengine.ExcelDataEngine;
import com.mmt.autoqa.models.TestCaseData;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServiceBuilder;
import io.appium.java_client.service.local.flags.GeneralServerFlag;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.DesiredCapabilities;
@iamporus
iamporus / favoriteItemListTile.dart
Last active Jul 11, 2020
Flutter Widget: FavoriteItemListTile - A Custom widget implementation to create a list tile which can be marked as favorite or not by the user.
View favoriteItemListTile.dart
import 'package:flutter/material.dart';
/// A custom [FavoriteItemListTile] widget.
///
/// The widget is composed on an [Text] and [Icon]. Tapping on the widget shows
/// a colored [InkWell] animation.
/// Can be used to create a list tile which can be marked as favorite or not by the user.
class FavoriteItemListTile extends StatelessWidget {
final String itemTitle;
final bool isFavorite;