Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input_file: validate empty timestamp #789

Closed
GITnewfish opened this issue Jul 14, 2020 · 4 comments · Fixed by #797
Closed

input_file: validate empty timestamp #789

GITnewfish opened this issue Jul 14, 2020 · 4 comments · Fixed by #797
Labels
bug Something isn't working help wanted

Comments

@GITnewfish
Copy link

I applied GOR to automated testing . A few days ago I recorded a batch of interfaces, now I find a few interfaces missing and I maked up. I changed the timestamps, so the two parts can be played back in sequence. But when I replay, I get this error
image
below is part of my record file
image

Is this error because I modified the timestamp?

How do you deal with this situation

@GITnewfish
Copy link
Author

image

I changed the timestamps is like this: 2=1+3 and 4=1+5s

@urbanishimwe urbanishimwe changed the title when replay get this error: panic: runtime error: index out of range input_file: validate empty timestamp Jul 14, 2020
@urbanishimwe urbanishimwe added bug Something isn't working help wanted labels Jul 14, 2020
@GITnewfish
Copy link
Author

GITnewfish commented Jul 14, 2020

image

I know the reason for this error, its because I carelessly put the request end code at the beginning of the record file.

so the next question is what do you recommend for this situation? Since it's not convenient to change the timestamps.

@buger
Copy link
Owner

buger commented Jul 27, 2020

Hi! Just to clarify. It is totally fine to change the timestamps if you do not modify the file format. in your case, I assume you copy-pasted a few requests and accidentally put the "monkeys" to the top of the file?

@GITnewfish
Copy link
Author

Hi! Just to clarify. It is totally fine to change the timestamps if you do not modify the file format. in your case, I assume you copy-pasted a few requests and accidentally put the "monkeys" to the top of the file?

yes, I accidentally put the "monkeys" to the top of the file. Changing the timestamp can solve the problem, but is there a more convenient way? For example, if I have a switch to control different files do not compare timestamps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants