why all testcases not getting reported to xray - selenium

i am triggering my test from jenkins
Total Tests: 393 (±0)
Failed Configurations: 0 (±0)
Failed Tests: 18 (±0)
but in Xray cloud - TOTAL TESTS: 60 PASSED- 46 , FAILED-14 for entire regression...
My TestNG Report.xml-https://pastebin.com/xV671g4F

The issue you're facing is because you are doing data-driven testing and several test methods are executed plenty of times.
You can try searching for the Test issue that corresponds to GETSubjectForAuthTeacher", and look at execution details to see the Test Run information. Probably inside of it, you'll see 68 entries/inner results.
$ fgrep '<test-method' ~/Downloads/xV671g4F.txt | egrep -o 'name="\w+"' | uniq -c
1 name="GETCountryForAuthTeacher"
1 name="GETCountryForGuestTeacher"
1 name="GETCountryForAuthStudent"
1 name="GETCountryForGuestStudent"
8 name="GETGradeForAuthTeacher"
8 name="GETGradeForAuthStudent"
8 name="GETGradeForGuestStudent"
8 name="GETDegreeForAuthTeacher"
1 name="GETDegreeforGuestTeacher"
1 name="GETDegreeforTeacherNegative"
8 name="GETDegreeForAuthStudent"
8 name="GETDegreeforGuestStudent"
1 name="GETDegreeforStudentNegative"
3 name="GETMajorForAuthTeacher"
1 name="GETMajorforGuestTeacher"
1 name="GETMajorforTeacherNegative"
3 name="GETMajorForAuthStudent"
3 name="GETMajorforGuestStudent"
1 name="GETMajorforStudentNegative"
88 name="GETSubjectForAuthTeacher"
8 name="GETCurriculumForAuthTeacher"
8 name="GETK12ChaptersForAuthTeacher"
5 name="GETSkillChaptersForAuthTeacher"
2 name="GETTestPrepChaptersForAuthTeacher"
3 name="GETUniversityChaptersForAuthTeacher"
2 name="GETK12TestsForAuthTeacher"
2 name="GETUniversityTestsForAuthTeacher"
2 name="GETK12SectionsForAuthTeacher"
2 name="GETUniversitySectionsForAuthTeacher"
6 name="GETK12SkillForAuthTeacher"
1 name="GETK12SkillNegativeForTeacher"
1 name="GETSkillForGuestTeacher"
4 name="GETK12SkillTopicsForAuthTeacher"
2 name="GETK12TestPrepTopicsForAuthTeacher"
8 name="GETK12TopicsForAuthTeacher"
4 name="GETCoursesForAuthTeacher"
1 name="GETCountryForAuthAdmin"
1 name="GETCountryForGuestAdmin"
8 name="GETGradeForAuthAdmin"
8 name="GETDegreeForAuthAdmin"
1 name="GETDegreeforAdminNegative"
1 name="GETDegreeforGuestAdmin"
3 name="GETMajorForAuthAdmin"
1 name="GETMajorforAdminNegative"
1 name="GETMajorforGuestAdmin"
88 name="GETSubjectForAuthAdmin"
8 name="GETCurriculumForAuthAdmin"
8 name="GETK12ChaptersForAuthAdmin"
5 name="GETSkillChaptersForAuthAdmin"
2 name="GETTestPrepChaptersForAuthAdmin"
3 name="GETUniversityChaptersForAuthAdmin"
2 name="GETK12TestsForAuthAdmin"
1 name="GETUniversityTestsForAuthAdmin"
2 name="GETK12SectionForAuthAdmin"
2 name="GETUniversitySectionForAuthAdmin"
6 name="GETK12SkillForAuthAdmin"
1 name="GETK12SkillNegativeForAdmin"
1 name="GETSkillForGuestAdmin"
4 name="GETK12SkillTopicsForAuthAdmin"
2 name="GETK12TestPrepTopicsForAuthAdmin"
8 name="GETK12TopicsForAuthAdmin"
4 name="GETCoursesForAuthAdmin"
1 name="SearchCurriculumTagForAuthAdmin"
1 name="SearchGradeTagForAuthAdmin"
1 name="SearchSubjectTagForAuthAdmin"
1 name="GETCurriculumTagForAuthAdmin"
1 name="GETGradeForAuthAdmin"
1 name="GETSubjectTagForAuthAdmin"

Related

How to track branching records on a table

Example, there are machines that processes and produced materials, is there a way to track the output of machine becoming the input of another, and counting how many passes the process took? here is the example desired output (pass column):
Record#
machine
input
output
pass
material
1
1
40422041
40422041
1
ABC74008000
2
2
40422041
40422041
2
ABC74004200
3
3
40422041
40422041
3
ABC74002100
4
4
40422041
A40422041
4
ABC74001200
5
4
40422041
40422041
4
ABC74001200
6
5
40422041
M421200629
5
ABC73000660
7
6
A40422041
M521200827
5
ABC73000660
8
6
A40422041
M521220239
6
ABC73000660
notice records 1,2,3,5 & 6 = these are all coming from input 40422041.
records 4,7 & 8 are results of A40422041 which was an output of 40422041, thus the pass is needed to be 4 on record # 4, and continued as pass 5 and 6 on records 7 & 8.
How can the pass sequence be achieved?

How to merge two rows if same values in sql server

I have the Following Output:
Sno
Value Stream
Duration
Inspection
1
Test1
3
1
2
ON
14
0
3
Start
5
0
4
Test1
5
1
5
OFF
0
1
6
Start
0
1
7
Test2
0
1
8
ON
3
1
9
START
0
1
10
Test2
2
2
I want to merge the same value after that before START values charge to after ON. For example S.no 4 will merge to s.no4.
1 | Test1 | 8 | 2 |
If the combination is not equal then don't allow it to merge. For Example, we have to consider only On/Start. If the condition is OFF/Start then don't allow to merge. E.g. S.no 5 and 6 OFF/Start then don't allow to merge s.no 4 & 7.
I think you are talking about summarization not merging:
select [Value Stream],
min(Sno) as First_Sno,
sum(Duration) as total_Duration,
sum(Inspection) as Inspection
from yourtable
group by [Value Stream]
Will give you the result

Another 'R could not find function "ggline"'

Before you give me the boilerplate advice about looking into loading packages, let me just say that I have loaded all of my packages. I have read previous posts about this and nothing has worked so far: I removed 'ggplot2','ggpubr','plyr','tidyverse', basically all of my packages and reinstalled them, with dependencies. I have tried require(ggplot2) and require(ggpubr). And I'm still getting this issue.
My code was working a couple of days ago, but I closed R and now I'm getting an error.
tiff(file="P:/School/Dissertation/Analysis/Results/Figures/means_GNG_PACC_slope.tiff")
ggline(plotcogs, x="TIME", y="GNG_PACC_slope", add=c("mean_sd","jitter"), color="STIM", palette=c("#00AFBB","#FC4E07"), size=0.75, point.size=1.25, xlab="Time from start of stim (min)", ylab="Mean", legend="right")
dev.off()
Error:
Error in ggline(plotcogs, x = "TIME", y = "GNG_PACC_slope", add = c("mean_sd", :
could not find function "ggline"
Any ideas why this would work recently but now isn't, in spite of me removing/reinstalling/loading the packages?
Example data block:
PARTIDA ORDER VISIT STIM TIME GNG_PACC_slope
1 1 5 1 1 -0.149925037
1 1 5 1 2 0.239808153
1 1 5 1 3 -0.299401198
1 1 4 2 1 -0.3003003
1 1 4 2 2 0.4
1 1 4 2 3 -0.4
4 2 4 1 1 -0.133333333
4 2 4 1 2 0.239808153
4 2 4 1 3 -0.085689803

Auctions System Logical Condition

I am trying to make an auctions system but can not figure out the logical conditions for doing so..
Lets say that I have 10 credit
$credit
I have already bet 5 credits on another auction... so I owe 5 from 10 $owe
I thus have 5 available... $available = $credit - $owe (=5)
I bet 3 from available (on a different item)...
I wish to bet again 4 (cancel 3, update to 4), but credit available is now $available - 3 (=2)
Can't find a logical solution.... written in code.
What is the condition for setting a bet???
Made up a matrix with the dependence between variables:
bet available owe lastbet
1 10 10 0
2 9 11 1
3 7 13 2
4 4 16 3
5 0 20 4
6 -5 25 5
7 -11 31 6
8 -18 38 7
9 -26 46 8
10 -35 55 9
11 -45 65 10
Need to translate it into a condition statement.... (the next row would not meet the conditions)
The condition should fail on the 11th row....
Based on the Matrix... I found out that the condition is:
if ($bet <= (($owe + $available) / 2)) {}
Not very intuitive......

MDX: iif condition on the value of dimension

I have 1 Virtual cube consists of 2 cubes.
Example of fact table of 1st cube.
id object_id time_id date_id state
1 10 2 1 0
2 11 5 1 0
3 10 7 1 1
4 10 3 1 0
5 11 4 1 0
6 11 7 1 1
7 10 8 1 0
8 11 5 1 0
9 10 7 1 1
10 10 9 1 2
Where State: 0 - Ok, 1 - Down, 2 - Unknown
For this cube I have one measure StateCount it should count States for each object_id.
Here for example we have such result:
for 10 : 3 times Ok , 2 times Down, 1 time Unknown
for 11 : 3 times Ok , 1 time Down
Second cube looks like this:
id object_id time_id date_id status
1 10 2 1 0
2 11 5 1 0
3 10 7 1 1
4 10 3 1 1
5 11 4 1 1
Where Status: 0 - out, 1 - in. I keep this in StatusDim.
In this table I keep records that should not be count. If object have status 1 that means that I have exclude it from count.
If we intersect these tables and use StateCount we will receive this result:
for 10 : 2 times Ok , 1 times Down, 1 time Unknown
for 11 : 2 times Ok , 1 time Down
As far as i know, i must use calculated member with IIF condition. Currently I'm trying something like this.
WITH MEMBER [Measures].[StateTimeCountDown] AS(
iif(
[StatusDimDown.DowntimeHierarchy].[DowntimeStatus].CurrentMember.MemberValue
<> "in"
, [Measures].[StateTimeCount]
, null )
)
The multidimensional way to do this would be to make attributes from your state and status columns (hopefully with user understandable members, i. e. using "Ok" and not "0"). Then, you can just use a normal count measure on the fact tables, and slice by these attributes. No need for complex calculation definitions.