title: "Creating Jobs" description: "Learn how to create and configure jobs in Well Tested"
Creating Jobs
This guide walks you through the process of creating and configuring jobs in Well Tested.
Job Types
Well Tested supports various job types to accommodate different testing scenarios.
1. Test Suites
- Unit Tests
- Integration Tests
- End-to-End Tests
- Performance Tests
2. Automated Workflows
- CI/CD Pipelines
- Scheduled Tests
- Event-Triggered Tests
Creating a New Job
Basic Configuration
interface JobConfig {
name: string;
description: string;
type: JobType;
priority: 'low' | 'medium' | 'high';
timeout: number; // in minutes
}
Steps to Create
-
Navigate to Jobs Dashboard
- Click "Create New Job"
- Select job type
- Fill in basic details
-
Configure Test Parameters
- Set test environment
- Define test data
- Configure timeouts
- Set retry policies
-
Set Up Triggers
- Schedule-based
- Event-based
- Manual triggers
- API triggers
Job Configuration
1. Environment Setup
environment:
node_version: "18.x"
database: "test_db"
variables:
API_KEY: ${SECRET_API_KEY}
BASE_URL: "https://api.example.com"
2. Test Configuration
- Test file patterns
- Exclude patterns
- Custom commands
- Resource limits
3. Notifications
Configure notifications to stay informed about job status and results.
- Email notifications
- Slack integration
- Custom webhooks
- Status updates
Advanced Features
1. Parallel Execution
- Configure parallel jobs
- Set concurrency limits
- Manage dependencies
- Resource allocation
2. Custom Scripts
#!/bin/bash
# Pre-test setup
npm install
npm run build
# Run tests
npm test
# Post-test cleanup
npm run cleanup
3. Artifacts
- Test reports
- Coverage reports
- Log files
- Screenshots
Best Practices
1. Job Organization
- Use descriptive names
- Group related jobs
- Tag jobs appropriately
- Document job purposes
2. Resource Management
Optimize resource usage to maintain performance and reduce costs.
- Set appropriate timeouts
- Clean up resources
- Monitor usage
- Schedule off-peak
3. Security
- Use environment variables
- Secure sensitive data
- Implement access controls
- Audit job access
Troubleshooting
Common Issues
-
Job Failures
- Check logs
- Verify configurations
- Test dependencies
- Review resource usage
-
Performance Issues
- Optimize test suites
- Check resource allocation
- Monitor execution time
- Review parallel execution
Integration
1. Version Control
- GitHub integration
- GitLab integration
- Bitbucket integration
- Custom VCS integration
2. CI/CD Platforms
- Jenkins
- CircleCI
- GitHub Actions
- Custom CI/CD
Monitoring and Analytics
1. Metrics
- Execution time
- Success rate
- Resource usage
- Test coverage
2. Reporting
- Custom dashboards
- Trend analysis
- Performance insights
- Cost tracking