Problem/Motivation
create tests for testing RSS and CSV Imports.
Steps to reproduce
- Install drupal instance
- Install feeds module
1. Add Feed Type
2. Basic Settings (Name, Description, Explanation)
3. Fetcher: download from url, Parser: RSS/Atom, Processor: Node, Content Type: Article 4. Settings: Import Period, Request Timeout
5. Processor Settings: Insert Content, Update Items
6. Create Mappings: Target (title, body), Source (content)
7. Add Feed: Title and Feed URL
8. Set RSS In local Directory Path
9. Confirm All Values Imported
Proposed resolution
create new test suite for feeds, all values are imported
similar to https://performantlabs.com/automated-testing-kit/tests
Remaining tasks
User interface changes
API changes
n/a
Data model changes
n/a
Issue fork automated_testing_kit-3475865
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- issue-3475865
changes, plain diff MR !14
Comments
Comment #2
irinaz commentedComment #3
peterrubin commentedComment #4
aangel commentedThis looks good to me...you will need a fixture (a data file of dummy data) that you import.
Place the fixture in the data folder and name it feedsData.txt (or whatever suffix you need).
For your tests, use ATK-PW-1180/ATK-CY-1180. You'll have the whole range up to 1189.
Comment #5
irinaz commented@aangel, do you recommend using a file for RSS import or a stable url (for example, https://www.drupal.org/rss.xml)? Or can we do both, as we need to test both Upload file and Download from URL options?
Comment #6
aangel commentedI would do both with two different tests.
Comment #8
aangel commented