Pact Basic测试失败

时间:2018-05-31 20:26:54

标签: pact

我正在尝试一个简单的pact测试,但它没有给出错误。以下是我的代码。我试图调用契约的方式是否存在任何问题。

ERROR:

 Sub newnew()
    Dim loadOne As String
        loadOne = "Z:\New folder\Pfiles1\1-1.emf"

    Dim loadTwo As String
        loadTwo = "Z:\New folder\Pfiles2\2-1.emf"

    Dim ws As Worksheet
        Set ws = Sheets("Sheet10")

    Dim coll As Collection
        Set coll = New Collection

    coll.Add loadOne
    coll.Add loadTwo

    For j = 1 To 2
        Dim opic As Shape
            Set opic = ws.Shapes.AddPicture(coll(j), False, msoCTrue, 1, 1, 100, 120)
        If j = 1 Then
            opic.Top = ws.Range("A1").Top
            opic.Left = ws.Range("A1").Left
        Else
            opic.Top = ws.Range("E1").Top
            opic.Left = ws.Range("E1").Left
        End If
    Next j
End Sub

CODE

groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object  The current character read is 'T' with an int value of 84 

1 个答案:

答案 0 :(得分:0)

在将标题内容类型更改为text / json之后,它工作正常。但是我无法找到pact文件。我在哪里可以找到它?