Logo: Relish

  1. Sign in

Project: Alm

Work done in background

  • @javascript
  • @delayed

In order to understand the status of the application
An admin user
Should be able to see when background workers are done

Background
Given
I am logged in as "admin"
And
the source "Citeulike" exists
And
"job_batch_size" of source "Citeulike" is 200
And
"workers" of source "Citeulike" is 1
And
we have 20 queued articles for "Citeulike"
Scenarios
Don't see stale articles
When
I go to the "Sources" admin page
And
I wait until all jobs for "Citeulike" have been processed
Then
I should not see stale articles for "Citeulike"
Don't see queued articles
When
I go to the "Sources" admin page
And
I wait until all jobs for "Citeulike" have been processed
Then
I should not see queued articles for "Citeulike"
Don't see jobs
When
I go to the "Sources" admin page
And
I wait until all jobs for "Citeulike" have been processed
Then
I should not see working jobs for "Citeulike"
And
I should not see pending jobs for "Citeulike"
Don't see jobs with not enough workers
Given
the source "Citeulike" exists with 1 worker and a job batch size of 10
When
I go to the "Sources" admin page
Then
I should not see working jobs for "Citeulike"
And
I should not see pending jobs for "Citeulike"

Last published over 5 years ago by Martin Fenner.