如何在使用空手道框架时生成JSON报告,以便可以使用黄瓜报告插件在JENKINS中使用它。 我的空手道版本是: 空手道-0.8.0 karate-junit4-0.8.0
答案 0 :(得分:0)
您确实应该阅读以下文档:https://github.com/intuit/karate/tree/master/karate-demo#example-report
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/cardView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="@dimen/cardview_default_elevation"
android:background="@android:drawable/dialog_holo_light_frame"
app:cardCornerRadius="18dp"
android:layout_marginBottom="2dp"
android:layout_marginTop="2dp"
android:layout_marginRight="30dp"
android:layout_marginLeft="30dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textView2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="56dp"
android:layout_marginLeft="56dp"
android:layout_marginTop="18dp"
android:fontFamily="serif"
android:text="Popcorns"
android:textColor="@android:color/black"
android:textSize="26sp"
android:textStyle="bold"
android:translationZ="2dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="16dp"
android:text="28 items"
android:textSize="13sp"
android:translationZ="2dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/textView2"
app:layout_constraintTop_toBottomOf="@+id/textView2"
app:layout_constraintVertical_bias="0.0" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
<ImageView
android:id="@+id/imageView"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:adjustViewBounds="false"
android:translationZ="5dp"
android:src="@drawable/popcorn1"
android:elevation="5dp"
android:layout_centerVertical="true" />
<Button
android:id="@+id/button"
android:layout_width="32.5dp"
android:layout_height="32.5dp"
android:padding="4dp"
android:background="@drawable/card_edge"
android:drawableTop="@drawable/baseline_chevron_right_24"
android:layout_centerVertical="true"
app:elevation="5dp"
android:layout_alignParentRight="true"
android:layout_marginRight="15dp"
android:layout_alignParentEnd="true"
android:layout_marginEnd="15dp" />