![]() The reason for this is to help you setup a visual chart with multiple series of statistics over a field containing the x-axis values. chart is the same as stats but it let's you group by only two fields instead of arbitrarily many. You can calculate these statistics across the record set as a whole (the default) or you can add a by clause to group over a set of other fields with the same corresponding value set for those fields allowing you to answer questions that require such division. Stats (and other functions) on the other hand lets you apply statistical functions across all records in your record set, including but not limited to count(eval(testLogic="ADD_PASS")) as Add_Count for example. If you want to set multiple values you need multiple eval statements ![]() Additionally, eval only sets the value of a single field at a time. Because eval works on a row by row basis, attempting to count the number of times a field is a certain value across all records isn't possible with the eval function. eval lets you assign a value to a new field on each result (row / record) based on values of other fields in each result and functions applied to the same. The issue at hand I think is an understanding of the differences between eval and chart. So I am wondering what I am all doing wrong ? (here I expect to get over the time chart if at least one stepName additional_sub_? or wrong_sub_? was having stepStatus PASS or not)īut it produce a lot of errors starting with:Įrror in 'eval' command: The operator at ', Wrg_Count = count(testLogic="WRG_PASS")' is invalid. (here I check if count is more then zero or not) (here I count number of "PASS"es, max is 2 min is 0 ) (here I get into field testLogic all events which are PASS and belongs to one of two stepName) LIKE(stepName,"wrong_sub_%") AND stepStatus="PASS", "WRG_PASS") To describe step by step what I am doing: LIKE(stepName,"wrong_sub_%") AND stepStatus="PASS", "WRG_PASS") |Įval Add_Count = count(testLogic="ADD_PASS"), Wrg_Count = count(testLogic="WRG_PASS") |Įval Add_Status=if(Add_Count>0,"PASS","FAIL"), Wrg_Status=if(Add_Count>0,"PASS","FAIL") | LIKE(stepName,"additional_sub_%") AND stepStatus="PASS", "ADD_PASS", The same holds for the chart of values Wrg_Status over the time. So, Add_Status would have value PASS is at least one stepName(additional_sub_4 or additional_sub_3) is PASS, otherwise FAIL. I need to draw a chart with two lines Add_Status, Wrg_Status which would have values of PASS or FAIL over the time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |