Test automation made simple and cost-effective
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The BugBug API lets you automate and integrate your browser testing workflows. With it, you can manage tests, run them programmatically, and receive test results. By connecting the BugBug API with Pipedream, you can craft serverless workflows that trigger on various events, enabling a seamless CI/CD integration, or alerting you when your automated tests detect issues.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bugbug: {
type: "app",
app: "bugbug",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.bugbug.io/api/v1/profiles/`,
headers: {
"Authorization": `Token ${this.bugbug.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})