For example, the Yathzee game has a score card with 13 categories, when I want to test scoring, should I just create a .feature file and write 13 scenarios to test each category, or create .feature file for each categroy?
As its an feature you can define each category as one feature if they are all along different.
If the these categories are not so diffferent and shared a same steps then use scenario outline in feature file and pass the category name, data and other required details using example table
Related
How to handle the remove flight booking in webtours? It came to my mind that if I wanna run the test with 3 virtual users and how they supposed to delete the booking if the information down here (refer below) are unique for each virtual user? Does any of these variables below need to be parameterized or need to apply correlation?
If there are multiple flight id to be deleted, we can create a CSV file having those ids
and use a while loop controller to delete each of them.
You may refer -
https://guide.blazemeter.com/hc/en-us/articles/206733689-Using-CSV-DATA-SET-CONFIG
https://www.blazemeter.com/blog/using-while-controller-jmeter
As you said, it will differ for a different user, you can store each value from the response of each user(extract value using regex) and pass them in delete call.
reference link - https://guide.blazemeter.com/hc/en-us/articles/207421325-Using-RegEx-Regular-Expression-Extractor-with-JMeter-Using-RegEx-(Regular-Expression-Extractor)-with-JMeter
I don't know what "webtours" is, however there is one "golden" rule: each and every parameter which is dynamic needs to be correlated.
If you don't have any idea regarding which ones are dynamic - record the same action one more time using JMeter's HTTP(S) Test Script Recorder and compare the generated requests, parameter values (or even names) which differ needs to be correlated.
Another approach is to inspect the previous response(s) using View Results Tree listener and look if the data is present there
Check out Advanced Load Testing Scenarios with JMeter: Part 1 - Correlations article for more information and example implementation
Given the demo category edit page as a reference
https://marmelab.com/react-admin-demo/#/categories/0
Is there a built-in way/guidelines to add/remove products from the category? i can't find any reference about in in the docs/example
No man, you should do it by yourself according your needs.
You can only create separate list with actions as shown in tutorial and edit it outside of category itself, as standalone table.
If u want to edit list of products which only belongs to concrete category, you should create your own component.
You may be need something like that example: https://codesandbox.io/s/rm4jy6n68o
I'm new at using odoo, so i faced an override of create method but still don't quite understand the concept.
This is the create method I used :
#api.model
def create(self, vals):
vals['task_idd'] = self.env['crane.task'].create({'equipment_id': vals['equipment_id'], 'type': vals['type']}).id
vals['task_ids'] = [(4, vals['task_idd'])]
return super(crane_workorder, self).create(vals)
this code works perfectly
i had a one2many relation that has been converted into one2one(logically), so i override the create method till i can create two records from two different classes...
PS1: equipment_id & type are required fields, but i don't understand how does it work ...
If what you mean is how does the list containing a single tuple [(4, vals['task_idd'])] give the desired result here is my understanding.
When Odoo is either creating or writing to a record which is a relation field Odoo uses a command syntax which is the structure you used in your code. Basically when writing or creating a related field from the perspective of any particular record Odoo tries to take away the ambiguity by creating a specific series of commands to use in these circumstances.
For instance if you need to write to a One2many field how is Odoo supposed to know if your are adding a new record to the list of many other records or are you saying that the list of related records is this new record you have referenced in your code.
So imagine you have a tree with a One2many relation with its Apples. If you were writing to a database recording another apple for the tree are you saying that this apple is to be added to the list of existing apples or is it replacing the existing list and should be considered the only apple that belongs to the tree.
So Odoo uses this tuple structure and has a process for parsing the tuple and determining how to handle its values and what to write to the database.
Here is a screen shot of the documentation Odoo provides on the matter. Here is the link to the page
I run table tennis products website.
I need to add product specification and way for users be able to compare between products on their specs.
Example the following product page : product example
Every blade like above will have its speed and control quality number.
So need to put this on above product page like :
Speed : 89
Quality: 70
And users can compare specs with other products side by side.
I understand I can just input the above spec on product description, but then it does not have compare system,
users will have to manualy open two screens, and thats difficult for mobile users.
Is there any in-build solution in shopify or any app that can do this ?
You can do it but it is not a straight forward way.
Create all additional fields using metafields property of the products. More information - https://help.shopify.com/themes/liquid/objects/metafield
Create a comparison "page" where you can provide 2/3/4 drop lists for products to be used for comparison
Create a template for products that displays the comparison data in JSON notation. More information - https://help.shopify.com/themes/customization/store/create-alternate-templates
As soon as a product is selected in "2", do an AJAX call to the product template in "3". You'll get the required data. Now you can arrange it in any format as you need.
i'm developing a very simple (for newbie user) back end for prestashop, and i would like to know where to find the product’s images name uploaded..
I know they are into “img/p” directory. But i don’t know:
1. In which database table they are .. linked
2. Why they are called (for example): 1-18-small.jpg … why “1-18” instead “1” (his productid) ? what that number means ?
Thanks
Since image names are language dependents, you will find them in image_lang table.
About filenames, the pattern is : productId-imageId-size.jpg
Full table structure you can see here:
http://doc.prestashop.com/display/PS15/Fundamentals
Names of the files:
In my case viwth ver. 1.5 is: img/p/3/0/3/1/3031-home_default_1.jpg
So its very easy to understand name is repeating folder structure.
img/ - image
p/ - product
3/0/3/1/ i think is so many because in case you have may images for one product.
3031 folder structure and then home_default_1.jpg or another sizes with different names in same folder, you can see just browse this folder.