机器人框架'运行关键字如果'预计至少2个参数,得1

时间:2018-03-07 09:21:15

标签: robotframework

 Run Keyword If    '${auditTrailFromState}'!='<n/a>' AND '${auditTrailToState}'!='<n/a>' AND '${auditTrailUser}'!='<n/a>'
/    Add Auditing Expectations    ${auditTrailFromState}    ${auditTrailToState}    ${auditTrailUser}
/    AND    Open Auditing Event Queue
/    AND    Verify Auditing Expectations

得到错误 '运行关键字如果'预计至少有2个参数,则得1

1 个答案:

答案 0 :(得分:1)

此问题已解决,如下所示

import time
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d

times = []
for n in np.logspace(1, 3.5, 6).astype(int):
    x = np.arange(n, dtype=float)
    y = np.vstack((np.cos(x), np.sin(x)))
    start = time.clock()
    bob = interp1d(x, y, kind='quadratic', assume_sorted=True)
    times.append((n, time.clock() - start))

n, tim = zip(*times)

plt.figure()
plt.plot(n, tim)
plt.xscale('log')
plt.yscale('log')
plt.show()